how to get the auth id in lravael code example Example: how to get the auth id in lravael $userId = Auth::id();