how to get user id in laravel using auth code example Example: how to get the auth id in lravael $userId = Auth::id();