Best practice : Multiple pages on Resource
Hello,
I have a more theorical than practical question :
I make an application for yoga, trainings, workshops reservations. Each of these section of the menu has 3 pages :
- List of objects (eg : list of yoga courses with CRUD)
- List of events (eg : list of yoga sessions with CRUD on "Event" object)
- Calendar of event (eg : list of yoga sessions in a calendar view (with Saade plugin)
I tried to make 3 pages in my YogaResource folder but I can't find how to register navigation for a Page of a Resource ; these functions doesn't work :
Solution:Jump to solution
If these resources and pages are all part of a Panel, then you can register the Pages into the panel definition, or have the Panel auto-discover the pages in the Pages directory.
eg:
```php
->discoverResources(in: app_path('Filament/App/Resources'), for: 'App\Filament\App\Resources')...
2 Replies