PHP code example of laxmidhar / log-lens

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

    

laxmidhar / log-lens example snippets


// config/loglens.php
return [
    'route_prefix' => 'logs',     // e.g. 'admin/logs'
    'middleware'   => ['web'],
    'max_entries'  => 500,
    'chunk_size'   => 8192,
];

'middleware' => ['web', 'auth'],
bash
php artisan vendor:publish --tag=loglens-config
bash
php artisan vendor:publish --tag=loglens-views