From e98928e6977f506e571ef2a38c3d0068c159a44f Mon Sep 17 00:00:00 2001 From: Swapnil Bhavsar Date: Thu, 10 Sep 2020 22:16:24 +0530 Subject: [PATCH] Add example to use "tenant_route()" helper. --- source/docs/v3/features/cross-domain-redirect.blade.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/docs/v3/features/cross-domain-redirect.blade.md b/source/docs/v3/features/cross-domain-redirect.blade.md index b5715c1..f482e2e 100644 --- a/source/docs/v3/features/cross-domain-redirect.blade.md +++ b/source/docs/v3/features/cross-domain-redirect.blade.md @@ -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); -``` \ No newline at end of file +``` + +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')); +```