F
Filamentβ€’9mo 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
haritz
haritzOPβ€’9mo ago
Perfect thanks πŸ™
Want results from more Discord servers?
Add your server