PHP code example of maxsky / lumen-log-viewer
1. Go to this page and download the library: Download maxsky/lumen-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/ */
maxsky / lumen-log-viewer example snippets
$this->app->register(\LumenLogViewer\Providers\LumenLogViewerServiceProvider::class);
/** @var Laravel\Lumen\Routing\Router $router */
$router->group(['namespace' => '\LumenLogViewer\Controllers'], function () use ($router) {
$router->get('logs', 'LogViewerController@index');
});