Update integration for laravel nova 4 (#180)

The previous configuration throws an error when setting up the middleware with 'web', you have to use 'nova' with nova v4.
This commit is contained in:
Adrià Ardila 2022-08-26 19:39:22 +02:00 committed by GitHub
parent 7b6a692b59
commit af05970907
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,13 +51,13 @@ To use Nova inside of the tenant part of your application, do the following:
// You can make this simpler by creating a tenancy route group // You can make this simpler by creating a tenancy route group
InitializeTenancyByDomain::class, InitializeTenancyByDomain::class,
PreventAccessFromCentralDomains::class, PreventAccessFromCentralDomains::class,
'web', 'nova',
]) ])
->withPasswordResetRoutes([ ->withPasswordResetRoutes([
// You can make this simpler by creating a tenancy route group // You can make this simpler by creating a tenancy route group
InitializeTenancyByDomain::class, InitializeTenancyByDomain::class,
PreventAccessFromCentralDomains::class, PreventAccessFromCentralDomains::class,
'web', 'nova',
]) ])
``` ```
- Set the `domain` in Nova config to `null` - Set the `domain` in Nova config to `null`