auth()->user()->is_admin inside AdminPanel Provider return null

How to fix it plase ? like this method
313504214-d75fbfb6-f1ec-4863-ace4-21fec4a19e6f.png
Solution
It’s a service provider. Auth is only available after middlewares. Wrap it in a closure and it will work.
Was this page helpful?