Download the PHP package samueletur/laravel-error-tracking-to-telegram without Composer
On this page you can find all versions of the php package samueletur/laravel-error-tracking-to-telegram. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download samueletur/laravel-error-tracking-to-telegram
More information about samueletur/laravel-error-tracking-to-telegram
Files in samueletur/laravel-error-tracking-to-telegram
Package laravel-error-tracking-to-telegram
Short Description This package send an alert notification to telegram when a error from laravel is executed
License MIT
Homepage https://github.com/samueletur/laravel-error-tracking-to-telegram
Informations about the package laravel-error-tracking-to-telegram
Laravel error tracking to Telegram
Installation
You can install the package via composer:
Call LaravelErrorTrackingToTelegram in app\Exceptions\Handler inside register function
Configuration
Configuring for use within your Laravel app takes place mainly in the config/error_tracking_telegram.php
file. Each item is broken down in the comment lines above it, describing what that item does and what value(s) it's anticipating.
Create and set parameters on .env
There are also two .env variables you'll need to set depending on if you use notifications:
- TELEGRAM_BOT_TOKEN, the token of telegram app
- TELEGRAM_CHAT_ID, ID from your chat or group room.
Tip: How to create a bot token on Telegram. 1) Crie uma conta no Telegram 2) Inicie uma conversa com o @botfather (lembre-se que os robôs oficiais do Telegram têm um tique azul do lado do nome) 3) Clique em iniciar 4) Escolha o comando /newbot 5) Escolha o nome do seu chatbot e faça as configurações gerais
You can publish the config file with:
This is the contents of the published config file:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.