PHP code example of muhamadzain / laravel-telegram-log

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

    

muhamadzain / laravel-telegram-log example snippets


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

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

config(['telegram-logger.template'=>'laravel-telegram-logging::custom'])



return [
    // Telegram logger bot token
    'token' => env('TELEGRAM_LOGGER_BOT_TOKEN'),

    // Telegram chat id
    'chat_id' => env('TELEGRAM_LOGGER_CHAT_ID'),
];
dotenv
LOG_CHANNEL=telegram
shell
php artisan vendor:publish --provider "TelegramLog\TelegramServiceProvider"