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([
|
Route::group([
|
||||||
'as' => 'passport.',
|
'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'),
|
'prefix' => config('passport.path', 'oauth'),
|
||||||
'namespace' => 'Laravel\Passport\Http\Controllers',
|
'namespace' => 'Laravel\Passport\Http\Controllers',
|
||||||
], function () {
|
], function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue