Laravel log viewer

Inspired by Micheal Mand’s Laravel 4 log viewer.

Log Viewer for Laravel 5 (compatible with 4.2 too).

Install:

composer require rap2hpoutre/laravel-log-viewer

Add Service Provider to config/app.php in providers section

‘Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider’,

Add a route in app/Http/routes.php (or choose another route):

Route::get(‘logs’, ‘\Rap2hpoutre\LaravelLogViewer\LogViewerController@index’);

my advice:
//protect log viewer with superamin filter

Route::get(logs”, [
‘before’ => ‘superadmin’,
“uses” => ‘\Rap2hpoutre\LaravelLogViewer\LogViewerController@index’
]);

https://github.com/rap2hpoutre/laravel-log-viewer

Blogbook : PHP | Javascript | Laravel | Corcel | CodeIgniter | VueJs | ReactJs | WordPress