From aec7a841b87a5d36f2f22d16064d3e327191c4a7 Mon Sep 17 00:00:00 2001 From: Aft Date: Wed, 12 Dec 2018 13:15:15 +0300 Subject: [PATCH] Support $router for Lumen (#181) Lumen new version use $router instead of $app --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4c9d990..85bcef0 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,8 @@ $app->register(\Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::cl Explicitly set the namespace in `app/Http/routes.php`: ```php -$app->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($app) { - $app->get('logs', 'LogViewerController@index'); +$router->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($router) { + $router->get('logs', 'LogViewerController@index'); }); ```