Merge pull request #266 from zaingithub/patch-1

Update README.md
This commit is contained in:
Simon Sessingø
2017-08-23 22:16:24 +02:00
committed by GitHub
+1 -1
View File
@@ -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');
}
});