PHP code example of pharit / laravel-logs-viewer
1. Go to this page and download the library: Download pharit/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/ */
pharit / laravel-logs-viewer example snippets
// config/logs-viewer.php
return [
'route_prefix' => 'logs-viewer',
'middleware' => ['web'],
];
bash
php artisan vendor:publish --tag=logs-viewer-config
php artisan vendor:publish --tag=logs-viewer-views