Hello. How can I access the current logged in user with auth()->user() in global scope defined in...
Hello. I am building a social website where users can block each other. What I'm trying to achieve i...
Hello. In my app user model has a global scope "active", which checks if the "active&...
In case someone stumbles upon this thread. I managed to cheat a bit. What I did is saved authenticat...
TorchSK said: Why are you using auth()? If you use Auth::user()->id , does it work? It doesn't...
Great, thanks! Middleware is a good enough solution. I've used it in routes instead in controller.
The Laravel portal for problem solving, knowledge sharing and community building.
The community