How do you get the current login user in your code?

How do you get the current login user in your code?

Laraship QuestionsCategory: TechnicalHow do you get the current login user in your code?
jedjie asked 3 weeks ago

Hello,

Please answer me. How to get the current user that is currently login in my website? I need this to determine what type of user has the scope access for a particular page that I am building. What is the User class offered in Laraship for me to use that info in a Controller that will link and query to a database that is meant for that user.

1 Answers
laraship Staff answered 3 weeks ago

Hello,

Laraship is Built on Laravel, and we are using Laravel stabdards.

Regarding your question :

https://hdtuto.com/article/how-to-get-current-user-details-in-laravel-57

jedjie replied 3 weeks ago

thank you.

50% OFF

No Minimum, No Exceptions
 
GO TO STORE
close-link