Created middleware to catch rest errors and return JSON responses

This commit is contained in:
Alejandro Celaya
2016-07-26 09:54:13 +02:00
parent 57d81115de
commit 0ef1e416c6
4 changed files with 70 additions and 6 deletions

View File

@@ -26,11 +26,5 @@ return [
],
'priority' => 1,
],
'error' => [
'middleware' => [],
'error' => true,
'priority' => -10000,
],
],
];