PHP code example of samueletur / laravel-error-tracking-to-telegram
1. Go to this page and download the library: Download samueletur/laravel-error-tracking-to-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/ */
samueletur / laravel-error-tracking-to-telegram example snippets
public function register(): void
{
$this->reportable(function (Throwable $e) {
LaravelErrorTrackingToTelegram::send($e);
});
}
return [
'telegram_bot_token' => env('TELEGRAM_BOT_TOKEN'),
'telegram_chat_id' => env('TELEGRAM_CHAT_ID')
];
bash
php artisan vendor:publish --tag=error_tracking_telegram_config