mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
Update passport.blade.md (#128)
Fixed using Passport in both the central and tenant app
This commit is contained in:
parent
4038f81302
commit
d59c25ee15
1 changed files with 19 additions and 1 deletions
|
|
@ -87,7 +87,25 @@ And again, you need to create clients in your tenant database seeding process.
|
|||
|
||||
## Using Passport in both the central & tenant app {#using-passport-in-both-the-central-and-tenant-app}
|
||||
|
||||

|
||||
To use Passport on central and tenant application, you may apply the following changes.
|
||||
|
||||
- Remove this from the `register` method in your `AppServiceProvider` if you added it previously:
|
||||
|
||||
```php
|
||||
Passport::ignoreMigrations();
|
||||
```
|
||||
|
||||
- Configure `Passport routes` on the `register` method in your `AppServiceProvider` as follows:
|
||||
|
||||
```php
|
||||
Passport::routes(null, ['middleware' => [
|
||||
'universal',
|
||||
InitializeTenancyByDomain::class
|
||||
]]);
|
||||
```
|
||||
|
||||
- Make a copy of `Passport migrations` to `database/migrations/tenant/` directory
|
||||
|
||||
|
||||
And make sure you enable the *Universal Routes* feature.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue