1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:24:04 +00:00

Home route -> home url

This commit is contained in:
Samuel Štancl 2019-09-22 17:24:02 +02:00
parent 92618e09a5
commit 4a17992957
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ class PreventAccessFromTenantDomains
$is_a_tenant_route = in_array('tenancy', $request->route()->middleware());
if ($is_a_tenant_domain && ! $is_a_tenant_route) { // accessing web routes from tenant domains
return redirect(config('tenancy.home_route'));
return redirect(config('tenancy.home_url'));
}
if ($is_an_exempt_domain && $is_a_tenant_route) { // accessing tenant routes on web domains