Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Update bootstrap/helpers/shared.php

Andras Bacsai8dd5d01f690b
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 011c867441..c0425a3f01 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -361,7 +361,7 @@ function refreshSession(?Team $team = null): void
}
if (! $team) {
// Fall back to any team the user still belongs to.
- $team = User::find(Auth::id())->teams()->first();
+ $team = User::query()->find(Auth::id())?->teams()->first();
}
}