From 8720e732e1a0183be6d7d69fa118239feadd9919 Mon Sep 17 00:00:00 2001 From: zaingithub Date: Sun, 20 Aug 2017 12:47:27 +0700 Subject: [PATCH] Update README.md Update section : ## Handling 404, 403 and other errors $exception->getCode to $exception->getCode() --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ef10ef5..a79b50f 100644 --- a/README.md +++ b/README.md @@ -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'); } });