My edit doesn't appear, neither in the view nor in the table?
The code is attached, but here are some snippets:
table:
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\ViewAction::make(),
])
get pages:
public static function getPages(): array
{
return [
'index' => Pages\ListTopics::route('/'),
'create' => Pages\CreateTopic::route('/create'),
'view' => Pages\ViewTopic::route('/{record}'),
'edit' => Pages\EditTopic::route('/{record}/edit'),
];
}
However, only the "View" option appears. I created the resource with the following command:
sail artisan make:filament-resource Topic --view
2 Replies
are you using policies?
Not for this model
But i use policy for comments That has a relationship with this resources model