Laravel 5.5 get current login user details using Auth

  38944 views   3 years ago Laravel

Today, we are share with youu how to get current login user details in laravel. we are always need to sometime current login user details like id, name, email, profile picture etc..

So, here we are share with you how to get in to way. you also get current login user details in controller and blade in same way.


Using Helper:

$user = auth()->user();
Using Facade:

$user = Auth::user();

We are hope this is helpfull to you...

Author : Harsukh Makwana
Harsukh Makwana

Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]

Related Articles