Join WhatsApp ChannelJoin Now

How To Get Current Login User Details In Laravel 8

Hi Developer,

Today, i we will show you how to get current login user details in laravel 8. This article will give you simple example of how to get current login user details in laravel 8. you will how to get current login user details in laravel 8. So let’s follow few step to create example of how to get current login user details in laravel 8.

Example:

$user = auth()->user();

print($user->id);

print($user->name);

print($user->email);

I hope it will assist you…

Recommended Posts