mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:24:02 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
2381bf1e01
commit
35af5db8a6
1 changed files with 3 additions and 3 deletions
|
|
@ -17,9 +17,9 @@ class PreventAccessFromTenantDomains
|
|||
{
|
||||
// If the domain is not in exempt domains, it's a tenant domain.
|
||||
// Tenant domains can't have routes without tenancy middleware.
|
||||
if (! in_array(request()->getHost(), config('tenancy.exempt_domains')) &&
|
||||
! in_array('tenancy', request()->route()->middleware())) {
|
||||
abort(404);
|
||||
if (! \in_array(request()->getHost(), config('tenancy.exempt_domains')) &&
|
||||
! \in_array('tenancy', request()->route()->middleware())) {
|
||||
abort(404);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue