PHP code example of uchup07 / laravel-logging-telegram

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

    

uchup07 / laravel-logging-telegram example snippets


TELEGRAM_BOT_TOKEN=token_telegram_bot
TELEGRAM_CHAT_ID=
TELEGRAM_LOG_LEVEL=error

'telegram' => [
    'driver' => 'custom',
    'via'    => Uchup07\LaravelLoggingTelegram::class,
    'level'  => env('TELEGRAM_LOG_LEVEL','error'),
]

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

php artisan vendor:publish --provider "Uchup07\LaravelLoggingTelegram\LaravelLoggingTelegramServiceProvider"