mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
Add example to use "tenant_route()" helper. (#80)
* Add example to use "tenant_route()" helper. * Update source/docs/v3/features/cross-domain-redirect.blade.md Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
25747b5c4d
commit
3f0d880801
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
|
||||
return redirect()->route('home')->domain($domain);
|
||||
```
|
||||
|
||||
You can also use the `tenant_route()` helper to redirect users to another domain.
|
||||
|
||||
```php
|
||||
return redirect(tenant_route($domain, 'home'));
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue