PHP code example of toshkq93 / laravel-logger

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';

}

Route::group([
        'middleware' => 'logger',
        'group' => LoggerNameEnum::TELEPHONY
    ],function (){
        Route::post('/start', 'start');
        Route::post('/finish', 'finish');
    });
bash
php artisan vendor:publish --provider="Toshkq93\Logger\Providers\LoggerProvider"