find user id inside laravel controller code example Example: laravel 6 get user id $id = \Auth::id();