1. Go to this page and download the library: Download toshkq93/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/ */
toshkq93 / laravel-logger example snippets
Route::group([
'middleware' => 'logger',
], function (){
Route::post('/start', 'start');
});
class LoggerName
{
const TELEPHONY = 'telephony';
const USER = 'user';
const CHAT = 'chat';
const FILE = 'file';
}