mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 05:54:05 +00:00
change the variable name and undo the code style
This commit is contained in:
parent
7653fefefd
commit
65aecb9139
1 changed files with 4 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ use Stancl\Tenancy\Tenancy;
|
||||||
|
|
||||||
class UniversalRoutes implements Feature
|
class UniversalRoutes implements Feature
|
||||||
{
|
{
|
||||||
public static $middlewareUniversalName = 'universal';
|
public static $middlewareGroup = 'universal';
|
||||||
|
|
||||||
public static $identificationMiddlewares = [
|
public static $identificationMiddlewares = [
|
||||||
Middleware\InitializeTenancyByDomain::class,
|
Middleware\InitializeTenancyByDomain::class,
|
||||||
|
|
@ -24,7 +24,7 @@ class UniversalRoutes implements Feature
|
||||||
{
|
{
|
||||||
foreach (static::$identificationMiddlewares as $middleware) {
|
foreach (static::$identificationMiddlewares as $middleware) {
|
||||||
$middleware::$onFail = function ($exception, $request, $next) {
|
$middleware::$onFail = function ($exception, $request, $next) {
|
||||||
if (static::routeHasMiddleware($request->route(), static::$middlewareUniversalName)) {
|
if (static::routeHasMiddleware($request->route(), static::$middlewareGroup)) {
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue