File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 * limitations under the License.
1313 **/
1414
15- use Illuminate \Support \Facades \Log ;
15+ use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
16+ use Symfony \Component \HttpKernel \Exception \HttpException ;
1617use Throwable ;
1718use Illuminate \Validation \ValidationException ;
1819use Illuminate \Auth \Access \AuthorizationException ;
1920use Illuminate \Database \Eloquent \ModelNotFoundException ;
2021use Predis \Connection \ConnectionException as RedisConnectionException ;
21- use Symfony \Component \HttpKernel \Exception \HttpException ;
2222use Illuminate \Foundation \Exceptions \Handler as ExceptionHandler ;
2323
2424/**
@@ -38,6 +38,7 @@ class Handler extends ExceptionHandler
3838 ModelNotFoundException::class,
3939 ValidationException::class,
4040 RedisConnectionException::class,
41+ NotFoundHttpException::class
4142 ];
4243
4344 /**
@@ -65,7 +66,6 @@ public function render($request, Throwable $e)
6566 if (config ('app.debug ' )) {
6667 return parent ::render ($ request , $ e );
6768 }
68- Log::error ($ e );
6969 return response ()->view ('errors.404 ' , [], 200 );
7070 }
7171}
You can’t perform that action at this time.
0 commit comments