how to get current user id in laravel 8 code example Example: laravel 6 get user id $id = \Auth::id();