diff --git a/README.md b/README.md index 30d62da..1afe7a6 100644 --- a/README.md +++ b/README.md @@ -682,7 +682,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'); } });