1. Go to this page and download the library: Download ka4ivan/laravel-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/ */
return [
/*
* Default log channel
*
* This defines the default logging channel to be used by the application.
* The value is retrieved from the LOG_CHANNEL environment variable.
*/
'default' => env('LOG_CHANNEL', 'stack'),
/*
* Tracking logs configuration
*/
'tracking' => [
/*
* Defines the default logging channel for tracking events.
*/
'default' => 'tracking',
],
'user' => [
/*
* Specifies which fields from the authenticated user should be