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 5 years 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 5 years 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