auth()->user == id laravel code example Example: get id user login laravel use Auth; $user_id = Auth::user()->id;