Update README.md

Update section : ## Handling 404, 403 and other errors

$exception->getCode to $exception->getCode()
This commit is contained in:
zaingithub
2017-08-20 12:47:27 +07:00
committed by GitHub
parent e31d8af2f7
commit 8720e732e1
+1 -1
View File
@@ -674,7 +674,7 @@ The code should be placed in the file that contains your routes.
Router::get('/not-found', 'PageController@notFound');
Router::error(function(Request $request, \Exception $exception) {
if($exception instanceof NotFoundHttpException && $exception->getCode == 404) {
if($exception instanceof NotFoundHttpException && $exception->getCode() == 404) {
response()->redirect('/not-found');
}
});