Laravel Logs Viewer
This library provider an friendly interface to view and analyze the logs from Laravel., (*1)
, (*2)
Click here to see MORE screenshots!, (*3)
Installation
composer require brunocouty/laravel-logs-viewer
In your config/app.php, add in "provider" array:, (*4)
\BrunoCouty\LaravelViewLogs\LaravelLogsViewerServiceProvider::class,
And add in 'aliases' array:, (*5)
'LaravelLogsViewer' => \BrunoCouty\LaravelViewLogs\LaravelLogsViewerFacade::class,
You need publish the assets (css and js files):, (*6)
php artisan vendor:publish --tag=public
In your routes file, add:, (*7)
LaravelLogsViewer::routes();
Note: If you want protected your route with a middleware or group, use something like:, (*8)
Route::group(['prefix' => 'your-group', 'middleware' => 'auth'], function () {
LaravelLogsViewer::routes();
});
Usage
To use this library, you need access the route "/logs" in your application., (*9)
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:, (*10)
php artisan vendor:publish
Return:, (*11)
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"., (*12)
The css and js files are in: "public/vendor/laravel-logs-viewer"., (*13)
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!, (*14)
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!, (*15)
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!, (*16)
https://www.patreon.com/brunocouty, (*17)