brunocouty/laravel-logs-viewer

Library to read the Laravel Logs easily in your applications!

1.1.1 2018-10-18 06:21 UTC

This package is not auto-updated.

Last update: 2024-04-28 01:29:23 UTC


README

This library provider an friendly interface to view and analyze the logs from Laravel.

alt text

Click here to see MORE screenshots!

Installation

composer require brunocouty/laravel-logs-viewer

In your config/app.php, add in "provider" array:

\BrunoCouty\LaravelViewLogs\LaravelLogsViewerServiceProvider::class,

And add in 'aliases' array:

'LaravelLogsViewer' => \BrunoCouty\LaravelViewLogs\LaravelLogsViewerFacade::class,

You need publish the assets (css and js files):

php artisan vendor:publish --tag=public

In your routes file, add:

LaravelLogsViewer::routes();

Note: If you want protected your route with a middleware or group, use something like:

Route::group(['prefix' => 'your-group', 'middleware' => 'auth'], function () {
    LaravelLogsViewer::routes();
});

Usage

To use this library, you need access the route "/logs" in your application.

http://127.0.0.1:8000/logs

// or

http://127.0.0.1:8000/your-group/logs

Customizing

To customize the view of this library, publish:

php artisan vendor:publish

Return:

Copied Directory [/modules/brunocouty/laravel-logs-viewer/src/resources/views] To [/resources/views]
Copied Directory [/modules/brunocouty/laravel-logs-viewer/src/resources/assets] To [/public/vendor/laravel-logs-viewer]

The view is in: "resources/views/logs".

The css and js files are in: "public/vendor/laravel-logs-viewer".

Like this content? Pay me a coffee!

Yeah! You like of this package? Pay me a coffee and help me to keep this package updated!

When you are my support, you have access to exclusive posts with a lot that cool things about PHP, Laravel, AngularJS, VueJS, Ionic, and much more! You will see haw create your own PHP Packages, resolve mistakes on your code... The great content!

Help me with only $1 / month and you will have access to my private content! And more, you need help to code your project? I can help you! Access my Patreon Profile, I can help you via e-mail or skype!

https://www.patreon.com/brunocouty