PHP code example of goodwong / laravel-log-viewer

1. Go to this page and download the library: Download goodwong/laravel-log-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/ */

    

goodwong / laravel-log-viewer example snippets


if (config('app.env') == 'local') {
    Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');
}

    Goodwong\LogViewer\LogViewerServiceProvider::class,