PHP code example of weldon / laravel-telegram-notifier
1. Go to this page and download the library: Download weldon/laravel-telegram-notifier 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/ */
weldon / laravel-telegram-notifier example snippets
use Weldon\LaravelTelegramNotifier\Facades\TelegramNotifier;
TelegramNotifier::notify("There is your text")
use Weldon\LaravelTelegramNotifier\Facades\TelegramNotifier;
try {
...
} catch (Exception $exception) {
TelegramNotifier::error($exception);
}
bash
php artisan vendor:publish --provider="Weldon\LaravelTelegramNotifier\LaravelTelegramNotifierServiceProvider"
bash
php artisan notify:check