*/ final class LogEntryCrudController extends AbstractCrudController { public static function getEntityFqcn(): string { return LogEntry::class; } public function configureCrud(Crud $crud): Crud { return $crud ->setEntityLabelInSingular('Log Entry') ->setEntityLabelInPlural('Log Entries') ->setDefaultSort(['loggedAt' => 'DESC']); } public function configureActions(Actions $actions): Actions { return $actions->disable(Action::NEW, Action::EDIT, Action::DELETE); } public function configureFields(string $pageName): iterable { yield DateTimeField::new('loggedAt', 'Time'); yield TextField::new('channel'); yield IntegerField::new('level'); yield TextField::new('levelName', 'Level'); yield TextField::new('message'); } }