get current user id in laravel blade laravel 7 code example Example: laravel 6 get user id $id = \Auth::id();