Add example to use "tenant_route()" helper.

This commit is contained in:
Swapnil Bhavsar 2020-09-10 22:16:24 +05:30 committed by GitHub
parent 4d12707980
commit e98928e697
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 between domains. Which also works when redirecting the user from the central domain to the tenant domain.
```php
return redirect(tenant_route($domain, 'home'));
```