PHP code example of daunoanove / lumen-request-log
1. Go to this page and download the library: Download daunoanove/lumen-request-log 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/ */
daunoanove / lumen-request-log example snippets
$app->middleware([
MalvikLab\LumenRequestLogMiddleware::class,
]);
return [
'channels' => [
'request-log' => [
'driver' => 'daily',
'path' => storage_path('logs/' . php_sapi_name() . '/requests.log'),
'days' => 30,
],
],
];