PHP code example of brunocouty / laravel-logs-viewer

1. Go to this page and download the library: Download brunocouty/laravel-logs-viewer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

brunocouty / laravel-logs-viewer example snippets


composer 

\BrunoCouty\LaravelViewLogs\LaravelLogsViewerServiceProvider::class,

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

php artisan vendor:publish --tag=public

LaravelLogsViewer::routes();

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

http://127.0.0.1:8000/logs

// or

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

php artisan vendor:publish

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]