ilhamzacky's avatar

how to get Auth user in laravel inside App/Commands

Hi friends, someone plz help .

i couldn't get the logged-in user details inside App/command

when i type Auth::user() it return null

is there any solution

in my controller this command work but inside app/command it isn't

0 likes
5 replies
Snapey's avatar
Snapey
Best Answer
Level 122

In your command, how do you know which user to use?

ilhamzacky's avatar

thanks @snapey , ya got it now, ill close this, this is a wrong question. thank you very much

Please or to participate in this conversation.