mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:14:04 +00:00
Set fortifyHome in stub when using request ID [ci skip] (#51)
This commit is contained in:
parent
aa6bfb4079
commit
a9ab646e59
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue