mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Add middleware to Passport 11.x code section
This commit is contained in:
parent
938b8ebc5b
commit
b785f27df8
1 changed files with 4 additions and 1 deletions
|
|
@ -47,7 +47,10 @@ To use Passport inside the tenant part of your application, you may do the follo
|
|||
|
||||
Route::group([
|
||||
'as' => 'passport.',
|
||||
'middleware' => [InitializeTenancyByDomain::class], // Use tenancy initialization middleware of your choice
|
||||
'middleware' => [
|
||||
InitializeTenancyByDomain::class, // Use tenancy initialization middleware of your choice
|
||||
PreventAccessFromCentralDomains::class,
|
||||
],
|
||||
'prefix' => config('passport.path', 'oauth'),
|
||||
'namespace' => 'Laravel\Passport\Http\Controllers',
|
||||
], function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue