mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Add example to use "tenant_route()" helper.
This commit is contained in:
parent
4d12707980
commit
e98928e697
1 changed files with 7 additions and 1 deletions
|
|
@ -13,3 +13,9 @@ Sometimes you may want to redirect the user to a specific route on a different d
|
||||||
```php
|
```php
|
||||||
return redirect()->route('home')->domain($domain);
|
return redirect()->route('home')->domain($domain);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also use the `tenant_route()` helper to redirect users between domains. Which also works when redirecting the user from the central domain to the tenant domain.
|
||||||
|
|
||||||
|
```php
|
||||||
|
return redirect(tenant_route($domain, 'home'));
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue