1. Go to this page and download the library: Download ndarproj/laravel-logzip 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/ */
ndarproj / laravel-logzip example snippets
return [
/*
|--------------------------------------------------------------------------
| Filename
|--------------------------------------------------------------------------
|
| This option defines what should be the compressed logs output filename.
|
*/
'log_zip_filename' => 'laravel',
/*
|--------------------------------------------------------------------------
| Compression Enable
|--------------------------------------------------------------------------
|
| This option defines if the logs must be compressed.
| set value to false to disable
*/
'log_compress_files' => true,
/*
|--------------------------------------------------------------------------
| Delete Enable
|--------------------------------------------------------------------------
|
| This option defines if the logs should be deleted after being compressed.
| set value to true to enable
*/
'log_delete' => true,
];