store user_id in session and retrive it in laravel code example Example: update session laravel $request->session()->push('user.uploadProfilePic', true);