PHP code example of buckhamduffy / laravel-request-log
1. Go to this page and download the library: Download buckhamduffy/laravel-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/ */
buckhamduffy / laravel-request-log example snippets
return [
'enable' => env('REQUEST_LOG_ENABLE', true),
'json_mode' => env('REQUEST_LOG_JSON_MODE', false),
'log_file' => env('REQUEST_LOG_FILE', storage_path('/logs/requests.log')),
];
bash
php artisan vendor:publish --tag="laravel-request-log-config"
bash
php artisan vendor:publish --tag="laravel-request-log-views"