mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 14:44:05 +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
|
||||
{
|
||||
if (! tenancy()->initialized) {
|
||||
$route = tenancy()->getRoute($request);
|
||||
|
||||
if (tenancy()->routeIsUniversal($route)) {
|
||||
if (tenancy()->routeIsUniversal(tenancy()->getRoute($request))) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue