PHP code example of zxygel0913 / request-logger

1. Go to this page and download the library: Download zxygel0913/request-logger 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/ */

    

zxygel0913 / request-logger example snippets


'providers' => [
	// ...
	Zxygel0913\RequestLogger\RequestLoggerServiceProvider::class
]

return [
    'channel' => 'daily', //Log Channel
    'logs' => [
        'url' => true,
        'ip' => true,
        'request' => true,
        'response' => false,
        'request_except' => ['password'] //Hide specific request from logging
    ],

php artisan vendor:publish

php artisan vendor:publish --tag=requestLogs