Change Passport::$registersRoutes = false to Passport::ignoreRoutes()

This commit is contained in:
lukinovec 2022-12-14 12:33:25 +01:00
parent 768a03b0d9
commit 938b8ebc5b

View file

@ -43,7 +43,7 @@ To use Passport inside the tenant part of your application, you may do the follo
5. If you're using Passport 11.x, disable the automatic Passport route registering and register the routes manually by adding the following code to the `register` method in your `AuthServiceProvider`: 5. If you're using Passport 11.x, disable the automatic Passport route registering and register the routes manually by adding the following code to the `register` method in your `AuthServiceProvider`:
```php ```php
Passport::$registersRoutes = false; Passport::ignoreRoutes();
Route::group([ Route::group([
'as' => 'passport.', 'as' => 'passport.',
@ -74,7 +74,7 @@ Passport::routes(null, ['middleware' => [
]]); ]]);
// Passport 11.x // Passport 11.x
Passport::$registersRoutes = false; Passport::ignoreRoutes();
Route::group([ Route::group([
'as' => 'passport.', 'as' => 'passport.',