mohamadmurad / telegram-tool-kit
send laravel log to telegram
v1.0.0
2023-06-04 21:55 UTC
Requires
- php: >=8.0
- irazasyed/telegram-bot-sdk: ^3.13
- monolog/monolog: ^2.5|^3.3
Requires (Dev)
- orchestra/testbench: ^8.0
README
install via composer
composer require mohamadmurad/telegram-tool-kit
publish the config
php artisan vendor:publish --provider="TelegramKit\TelegramKitServiceProvider"
add this channel to logging.php config file
'telegram' => [ 'driver' => 'custom', 'via' => \TelegramKit\TelegramLogger::class, 'level' => 'debug', ],
if you want to send notification every composer load add this script to your composer.json
{ "scripts": { "post-autoload-dump": [ "@php artisan TelegramKit:sendTelegramAutoLoadNotification" ] } }