1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 09:54:03 +00:00

Set fortifyHome in stub when using request ID [ci skip] (#51)

This commit is contained in:
lukinovec 2024-07-30 13:58:11 +02:00 committed by GitHub
parent aa6bfb4079
commit a9ab646e59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,7 @@ use Illuminate\Contracts\Database\Eloquent\Builder;
use Illuminate\Support\Facades\Route as RouteFacade;
use Stancl\Tenancy\Middleware\InitializeTenancyByPath;
use Stancl\Tenancy\Middleware\InitializeTenancyByRequestData;
use Stancl\Tenancy\Bootstrappers\Integrations\FortifyRouteBootstrapper;
class TenancyServiceProvider extends ServiceProvider
{
@ -189,6 +190,7 @@ class TenancyServiceProvider extends ServiceProvider
* });
*/
if (InitializeTenancyByRequestData::inGlobalStack()) {
FortifyRouteBootstrapper::$fortifyHome = 'dashboard';
TenancyUrlGenerator::$prefixRouteNames = false;
}