public static function table(Table $table): Table
{
return $table
->columns([/* ... */])
->filters([ /* ... */ ])
->actions([
Tables\Actions\ViewAction::make()
->modalFooterActions([
Action::make('close_modal')
->label(fn () => __('filament-actions::modal.actions.cancel.label'))
->close()
->color('gray'),
//
Action::make('resolve')
->label('Mark Resolved')
->visible(fn (ContentReport $record) => !$record->resolved)
// It was $record->update(['resolved' => true]) but even the
// `dd` function is not being called
->action(fn (ContentReport $record) => dd($record))
->color('success'),
]),
]);
}
public static function table(Table $table): Table
{
return $table
->columns([/* ... */])
->filters([ /* ... */ ])
->actions([
Tables\Actions\ViewAction::make()
->modalFooterActions([
Action::make('close_modal')
->label(fn () => __('filament-actions::modal.actions.cancel.label'))
->close()
->color('gray'),
//
Action::make('resolve')
->label('Mark Resolved')
->visible(fn (ContentReport $record) => !$record->resolved)
// It was $record->update(['resolved' => true]) but even the
// `dd` function is not being called
->action(fn (ContentReport $record) => dd($record))
->color('success'),
]),
]);
}