how to view logged in users on a website in laravel code example Example: get logged user id laravel $id = Auth::user()->id;print_r($id);