display information about the logged in user at the user resource level

good evening sir @tuto1902 ,
I have a php filament project, which has 2 dashboards, one "admin" and the other "user".
I created a user resource(list all registered users), which is displayed in the 2 dashboards, but I would like that at the level of the user dashboard("user"), I would like that only the information of the connected user is displayed, and can only modify his information and not for others.
thank you for helping me.
Solution
the UserPanelProvider class should be automatically created when you create a new panel using php artisan make:filament-panel User and it should be located in app\Providers\Filament\UserPanelProvider.php
It also should extend Filament\PanelProvider, not FilamentServiceProvider.
And that error means that Laravel can't find the class you are extending from. Which usually means you either using the wron class name, or you didn't import the class with use
Was this page helpful?