PHP code example of integready / laravel-telegram-logging

1. Go to this page and download the library: Download integready/laravel-telegram-logging 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/ */

    

integready / laravel-telegram-logging example snippets


'telegram' => [
    'driver' => 'custom',
    'via'    => Logger\TelegramLogger::class,
    'level'  => 'debug',
]

'stack' => [
    'driver' => 'stack',
    'channels' => ['single', 'telegram'],
]

LOG_CHANNEL=telegram

php artisan vendor:publish --provider "Logger\TelegramLoggerServiceProvider"