Fix my logic
This commit is contained in:
parent
1733f2cbc9
commit
dc01409fbc
@ -17,7 +17,7 @@ class ApiAuthorization
|
|||||||
public function handle($request, Closure $next)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
// During debug mode disable this check
|
// During debug mode disable this check
|
||||||
if (config('chaosapi.middleware-enabled')) return $next($request);
|
if (!config('chaosapi.middleware-enabled')) return $next($request);
|
||||||
|
|
||||||
// Get the Authorization header
|
// Get the Authorization header
|
||||||
$authHeader = $request->header('Authorization');
|
$authHeader = $request->header('Authorization');
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'middleware-enabled' => env('APP_DEBUG', false),
|
'middleware-enabled' => !env('APP_DEBUG', false),
|
||||||
|
|
||||||
'cachetime' => 60
|
'cachetime' => 60
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user