Show custom dashboard for roles using laravel-permission
Is it possible to get the current user role in AdminPanelProvider to direct to a specific dashboard?
2 Replies
Am I reading the documentation correctly here: https://filamentphp.com/docs/3.x/panels/dashboard#customizing-the-dashboard-page
The primary dashboard shown to a user is the first one they have access to (controlled by canView(), see above), according to the defined sort order.
canView
never gets called on the dashboardGitHub
Update 05-dashboard.md by andruu · Pull Request #10750 · filamentph...
Update proper way to hide/show Dashboards based on access.
Description
Visual changes (if any) are shown using screenshots/recordings of before and after.
Code style
composer cs command ha...