how to get laravel current auth user code example
Example 1: current user laravel
$user = auth()->user(); print($user->id);print($user->name);print($user->email);
Example 2: laravel auth
//namespace
use Illuminate\Support\Facades\Auth;
$user = auth()->user(); print($user->id);print($user->name);print($user->email);
//namespace
use Illuminate\Support\Facades\Auth;