How to Show Different Stats Widgets to Different Roles in FilamentPHP

When building dashboards in FilamentPHP, you may want to display different stats widgets to different user roles.For example: Filament makes this very easy by using simple role or permission checks inside your widget. 1. Create your StatsOverviewWidget The above command will generate the StatsOverview file. Permission Hide the entire widget Lets say, we want to … Read more