mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
mention L11 difference
This commit is contained in:
parent
98ed6c696d
commit
f5eb95e16b
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ This package has a concept of central routes and tenant routes. Central routes a
|
||||||
|
|
||||||
You may register central routes in `routes/web.php` or `routes/api.php` like you're used to. However, you need to make one small change to your RouteServiceProvider.
|
You may register central routes in `routes/web.php` or `routes/api.php` like you're used to. However, you need to make one small change to your RouteServiceProvider.
|
||||||
|
|
||||||
|
> Note: Since Laravel 11, there isn't a `RouteServiceProvider`, so you can instead wrap your central routes in a `Route::domain(...)->group(...)` call. See the quickstart guide for an example.
|
||||||
|
|
||||||
You don't want central routes — think landing pages and sign up forms — to be accessible on tenant domains. For that reason, register them in such a way that they're **only** accessible on your central domains:
|
You don't want central routes — think landing pages and sign up forms — to be accessible on tenant domains. For that reason, register them in such a way that they're **only** accessible on your central domains:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue