F
Filamentβ€’4mo ago
haritz

Authentication user provider is not defined

I am trying to access current user in the AdminPanelProvider but I get the title error. auth()->user() If I do the same in any Reaource, works fine. I just want to check user role and depending on the role display navigation or not. We have ->navigation(true/false) so I want to make it work with the current user role. Thank you.
2 Replies