mohamadmurad/telegram-tool-kit

send laravel log to telegram

v1.0.0 2023-06-04 21:55 UTC

This package is auto-updated.

Last update: 2024-04-04 23:38:20 UTC


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"
    ]
  }
}