mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
update docs for laravel 11
This commit is contained in:
parent
23211b1784
commit
c0c47c5470
3 changed files with 23 additions and 62 deletions
|
|
@ -18,10 +18,12 @@ First, enable the `UniversalRoutes` feature by uncommenting the following line i
|
|||
Stancl\Tenancy\Features\UniversalRoutes::class,
|
||||
```
|
||||
|
||||
Next, go to your `app/Http/Kernel.php` file and add the following middleware group:
|
||||
Next, go to your `bootstrap/app.php` file and add the following middleware group:
|
||||
|
||||
```php
|
||||
'universal' => [],
|
||||
->withMiddleware(function (Middleware $middleware) {
|
||||
$middleware->group('universal', []);
|
||||
})
|
||||
```
|
||||
|
||||
We will use this middleware group as a "flag" on the route, to mark it as a universal route. We don't need any actual middleware inside the group.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue