PHP code example of kmd / logviewer

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

    

kmd / logviewer example snippets


Log::useFiles(storage_path().'/logs/laravel.log');

$logFile = 'log-'.php_sapi_name().'.txt';

Log::useDailyFiles(storage_path().'/logs/'.$logFile);

'providers' => array(

    ...
    'Kmd\Logviewer\LogviewerServiceProvider',

),

$ php composer.phar update

$ php artisan asset:publish kmd/logviewer

"scripts":{
    "post-update-cmd":[
        "php artisan asset:publish kmd/logviewer",
        "php artisan optimize",
    ]
},

$ php artisan config:publish kmd/logviewer