1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 08:44:04 +00:00

Apply fixes from StyleCI

This commit is contained in:
stancl 2019-08-23 10:37:46 +00:00 committed by StyleCI Bot
parent 2381bf1e01
commit 35af5db8a6

View file

@ -17,8 +17,8 @@ class PreventAccessFromTenantDomains
{ {
// If the domain is not in exempt domains, it's a tenant domain. // If the domain is not in exempt domains, it's a tenant domain.
// Tenant domains can't have routes without tenancy middleware. // Tenant domains can't have routes without tenancy middleware.
if (! in_array(request()->getHost(), config('tenancy.exempt_domains')) && if (! \in_array(request()->getHost(), config('tenancy.exempt_domains')) &&
! in_array('tenancy', request()->route()->middleware())) { ! \in_array('tenancy', request()->route()->middleware())) {
abort(404); abort(404);
} }