We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1c8ed2 commit f8a0b3eCopy full SHA for f8a0b3e
src/Abstracts/Middleware.php
@@ -156,14 +156,16 @@ public function respond($response, $data = [])
156
return Redirect::to($redirect);
157
}
158
159
- if ($exception = $response['exception']) {
160
- throw new $exception();
161
- }
162
-
163
if ($response['abort']) {
164
abort($response['code'], trans('firewall::responses.block.message'));
165
166
+ if (array_key_exists('exception', $response)) {
+ if ($exception = $response['exception']) {
+ throw new $exception();
+ }
167
168
+
169
return Response::make(trans('firewall::responses.block.message'), $response['code']);
170
171
0 commit comments