thisisthejay
I am getting a 404 on my create page in a second panel
I had it working previously. I have a Report creation page in a Teacher panel. The ReportResource mirrors my admin ReportResoucre and the CreateReport page was generated using the artisan command at the beginning of the project
I even tried re-generating them but I still get a 404 only on the Create route
I checked that it is registered in my ReportResource and it looks like this:
All other pages are working and the CreateReport.php file exists.
3 replies
Best Practice for Multi-Panel Auth and Redirects
What is the best practice for:
- permissioning access to separate panels
- redirecting to a specific panel on login based on roles
I am using Filament Shield (with Spatie Roles and Permissions)
I have the following panels:
- Admin (default)
- Teachers
- Students
- HR
Admin should be accessibe by roles: 'Admin' and 'super_admin', Teachers by 'Teachers', Students by 'Students' and HR by 'Human Resources'
I adapted the User Model as follows which worked Locally but in production I couldn't access any Panels even as super_admin:
1 replies