PHP code example of atlas-wong / laravel-log-viewer

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

    

atlas-wong / laravel-log-viewer example snippets


AtlasWong\LaravelLogViewer\LaravelLogViewerServiceProvider::class,
 
Route::get('logs', '\AtlasWong\LaravelLogViewer\LogViewerController@index');

$app->register(\AtlasWong\LaravelLogViewer\LaravelLogViewerServiceProvider::class);

$app->group(['namespace' => '\AtlasWong\LaravelLogViewer'], function() use ($app) {
    $app->get('logs', 'LogViewerController@index');
});

php artisan vendor:publish --provider="AtlasWong\LaravelLogViewer\LaravelLogViewerServiceProvider" --tag=config

php artisan vendor:publish --provider="AtlasWong\LaravelLogViewer\LaravelLogViewerServiceProvider" --tag=views