Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre authored Jun 23, 2016
1 parent 3ba2e07 commit 3ff06fb
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ 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 ?
------
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
Expand All @@ -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');
});
```

0 comments on commit 3ff06fb

Please sign in to comment.