User::where(["user_id" =>auth()->id]) code example Example: laravel auth user_id $userId = Auth::id();