Skip to content
Permalink
Browse files

exception handle 시 세션이 시작되지 않은 경우만 세션 시작 처리

  • Loading branch information...
jhyeon1010 committed Jun 27, 2019
1 parent a1f2013 commit 9e2e8925617476d0ef7a2feed8f51b0da518e586
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/Exceptions/Handler.php
@@ -211,10 +211,10 @@ protected function prepareResponse($request, Exception $e)
return (new \Illuminate\Pipeline\Pipeline($this->container))
->send($request)
->through([
->through(!session()->isStarted() ? [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Session\Middleware\StartSession::class,
])
] : [])
->then(function ($request) use ($e) {
return $this->toIlluminateResponse(
$this->isFatalError($e) || !$this->withTheme() ?

0 comments on commit 9e2e892

Please sign in to comment.
You can’t perform that action at this time.