how to retrieve user id in laravel without usig auth code example Example: laravel auth user_id $userId = Auth::id();