Support the ongoing development of Laravel.io →

BrakaTakl

Joined 16 Jul 2016

Statistics

Threads 3
Replies 3
Solutions 0
Articles 0

Auth user in global scope

Hello. How can I access the current logged in user with auth()->user() in global scope defined in...

0 Likes
3 Replies

Global scope authorization

Hello. I am building a social website where users can block each other. What I'm trying to achieve i...

0 Likes
2 Replies
Solved

Laravel authentication without global scope

Hello. In my app user model has a global scope "active", which checks if the "active&...

0 Likes
5 Replies
replied 7 years ago

Auth user in global scope

In case someone stumbles upon this thread. I managed to cheat a bit. What I did is saved authenticat...

0 Likes
replied 7 years ago

Auth user in global scope

TorchSK said: Why are you using auth()? If you use Auth::user()->id , does it work? It doesn't...

0 Likes
replied 8 years ago

Global scope authorization

Great, thanks! Middleware is a good enough solution. I've used it in routes instead in controller.

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.