Skip to content

Commit

Permalink
Support $router for Lumen (#181)
Browse files Browse the repository at this point in the history
Lumen new version use $router instead of $app
  • Loading branch information
mrahmadt authored and rap2hpoutre committed Dec 12, 2018
1 parent fd0821b commit aec7a84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
```

Expand Down

0 comments on commit aec7a84

Please sign in to comment.