mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Use boot() instead of register() in some places
This commit is contained in:
parent
3ec45aa2ae
commit
492d0b9caa
1 changed files with 2 additions and 2 deletions
|
|
@ -70,9 +70,9 @@ To use Passport in both the tenant and the central application:
|
|||
|
||||
2. Copy the Passport migrations to the central application, so that the Passport migrations are in both the central and the tenant application.
|
||||
|
||||
3. Remove `Passport::ignoreMigrations()` from the `register` method in your `AuthServiceProvider` (if it is there).
|
||||
3. Remove `Passport::ignoreMigrations()` from the `register()` method in your `AuthServiceProvider` (if it is there).
|
||||
|
||||
4. In your `AuthServiceProvider`'s `register()` method (where you registered the Passport routes), add the `'universal'` middleware to the Passport routes, and remove the `PreventAccessFromCentralDomains::class` middleware. The related code in your `register()` method should look like this:
|
||||
4. In your `AuthServiceProvider`'s `boot()` method (where you registered the Passport routes), add the `'universal'` middleware to the Passport routes, and remove the `PreventAccessFromCentralDomains::class` middleware. The related code in your `boot()` method should look like this:
|
||||
|
||||
```php
|
||||
// Passport 10.x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue