mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 16:44:04 +00:00
Simplify code
This commit is contained in:
parent
936b32475e
commit
cf4cf11556
1 changed files with 1 additions and 3 deletions
|
|
@ -19,9 +19,7 @@ class ScopeSessions
|
||||||
public function handle(Request $request, Closure $next): mixed
|
public function handle(Request $request, Closure $next): mixed
|
||||||
{
|
{
|
||||||
if (! tenancy()->initialized) {
|
if (! tenancy()->initialized) {
|
||||||
$route = tenancy()->getRoute($request);
|
if (tenancy()->routeIsUniversal(tenancy()->getRoute($request))) {
|
||||||
|
|
||||||
if (tenancy()->routeIsUniversal($route)) {
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue