mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
API routes
This commit is contained in:
parent
fead4e8930
commit
ee1d969104
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ Routes outside the `routes/tenant.php` file will not have the tenancy middleware
|
||||||
|
|
||||||
If you want certain routes (perhaps API routes) to be multi-tenant, wrap them in a Route group with this middleware:
|
If you want certain routes (perhaps API routes) to be multi-tenant, wrap them in a Route group with this middleware:
|
||||||
|
|
||||||
|
## API routes / custom route groups
|
||||||
|
|
||||||
```php
|
```php
|
||||||
use Stancl\Tenancy\Middleware\InitializeTenancy;
|
use Stancl\Tenancy\Middleware\InitializeTenancy;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue