diff --git a/README.md b/README.md index 97b52b5..a058794 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Laravel 5 log viewer TL;DR ----- -The best (IMO) Log Viewer for Laravel 5 (compatible with 4.2 too). **Install with composer, create a route to `LogViewerController`**. No public assets, no vendor routes, works with and/or without log rotate. Inspired by Micheal Mand's [Laravel 4 log viewer](https://github.com/mikemand/logviewer) (works only with laravel 4.1) +The best (IMO) Log Viewer for Laravel 5 (compatible with 4.2 too) and Lumen. **Install with composer, create a route to `LogViewerController`**. No public assets, no vendor routes, works with and/or without log rotate. Inspired by Micheal Mand's [Laravel 4 log viewer](https://github.com/mikemand/logviewer) (works only with laravel 4.1) What ? ------ @@ -15,8 +15,8 @@ Small log viewer for laravel. Looks like this: ![capture d ecran 2014-12-01 a 10 37 18](https://cloud.githubusercontent.com/assets/1575946/5243642/8a00b83a-7946-11e4-8bad-5c705f328bcc.png) -Install -------- +Install (laravel) +----------------- Install via composer ``` composer require rap2hpoutre/laravel-log-viewer @@ -34,16 +34,22 @@ Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index'); Go to `http://myapp/logs` or some other route -Note for Lumen users --------------------- -For use with Lumen, explicitly set the namespace in `app/Http/routes.php`: -```php -$app->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($app) { - $app->get('logs', 'LogViewerController@index'); -}); +Install (lumen) +--------------- + +Install via composer +``` +composer require rap2hpoutre/laravel-log-viewer ``` -And add the following in `app/bootstrap.php`: +Add the following in `app/bootstrap.php`: ```php $app->register(Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class); ``` + +Explicitly set the namespace in `app/Http/routes.php`: +```php +$app->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($app) { + $app->get('logs', 'LogViewerController@index'); +}); +```