Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 22, 2020
1 parent b09da1c commit 4f77acd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions config/airlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,4 @@

'expiration' => null,

/*
|--------------------------------------------------------------------------
| CSRF Middleware Class
|--------------------------------------------------------------------------
|
| TBD
|
*/

'csrfMiddleware' => App\Http\Middleware\VerifyCsrfToken::class,

];
2 changes: 1 addition & 1 deletion src/Http/Middleware/EnsureFrontendRequestsAreStateful.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function ($request, $next) {
\Illuminate\Cookie\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
config('airlock.csrfMiddleware', \Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class),
config('airlock.middleware.verify_csrf_token', \Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class),
] : [])->then(function ($request) use ($next) {
return $next($request);
});
Expand Down

0 comments on commit 4f77acd

Please sign in to comment.