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:
Swapnil Bhavsar 2020-09-28 17:58:04 +05:30 committed by GitHub
parent 25747b5c4d
commit 3f0d880801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,4 +12,10 @@ 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'));
```