diff --git a/source/docs/v3/integrations/passport.blade.md b/source/docs/v3/integrations/passport.blade.md index ac584d7..ce6c733 100644 --- a/source/docs/v3/integrations/passport.blade.md +++ b/source/docs/v3/integrations/passport.blade.md @@ -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} -![Passport for both central & tenant app](/assets/images/passport_universal.png) +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.