laravel current user auth() code example
Example 1: current user laravel
$user = auth()->user(); print($user->id);print($user->name);print($user->email);
Example 2: make auth in laravel 7
composer require laravel/ui "^2.0"
$user = auth()->user(); print($user->id);print($user->name);print($user->email);
composer require laravel/ui "^2.0"