PHP code example of vietstars / logs-viewer
1. Go to this page and download the library: Download vietstars/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/ */
vietstars / logs-viewer example snippets
$app->register(\Vietstars\LogsViewer\LogsViewerServiceProvider::class);
$router->group(['namespace' => '\Vietstars\LogsViewer'], function() use ($router) {
$router->get('logs', 'LogsViewerController@index');
});
bash
php artisan vendor:publish \
--provider="Vietstars\LogsViewer\LogsViewerServiceProvider" \
--tag=views
bash
php artisan vendor:publish \
--provider="Vietstars\LogsViewer\LogsViewerServiceProvider"