PHP code example of mrjuliuss / syntara-logviewer
1. Go to this page and download the library: Download mrjuliuss/syntara-logviewer 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/ */
mrjuliuss / syntara-logviewer example snippets
artisan logviewer:install
Log::useFiles(storage_path().'/logs/laravel.log');
$logFile = 'log-'.php_sapi_name().'.txt';
Log::useDailyFiles(storage_path().'/logs/'.$logFile);