laravel get the id of the logged in user code example Example: get logged user id laravel $id = Auth::user()->id;print_r($id);