modifyQueryUsing(fn (Builder $query) => $query->with(ActionLog::getEloquentQuery()->getEagerLoads())) ->defaultSort(ActionLogModel::ATTRIBUTE_ID, 'desc') ->heading(__('filament.resources.label.action_logs')) ->pluralModelLabel(__('filament.resources.label.action_logs')) ->columns(ActionLog::table($table)->getColumns()) ->paginationPageOptions([5, 10, 25]) ->defaultPaginationPageOption(5) ->actions([ ViewAction::make() ->form(fn (Form $form) => ActionLog::form($form)), ]); } /** * Get the filters available for the relation. * * @return array * * @noinspection PhpMissingParentCallCommonInspection */ public static function getFilters(): array { return []; } /** * Determine whether the related model can be created. * * @return bool */ protected function canCreate(): bool { return false; } }