1. Go to this page and download the library: Download leek/laravel-compact-logs 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/ */
leek / laravel-compact-logs example snippets
// config/compact-logs.php
return [
// Channels to apply truncation to (set to null to disable auto-registration)
'channels' => ['single', 'daily'],
// Max stack trace frames per exception
'max_trace_depth' => (int) env('LOG_TRACE_DEPTH', 3),
];