PHP code example of mrjavadseydi / laravel-telegram-logging
1. Go to this page and download the library: Download mrjavadseydi/laravel-telegram-logging 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/ */
mrjavadseydi / laravel-telegram-logging example snippets
// Use the Laravel Log Facade
use Illuminate\Support\Facades\Log;
...
// All Laravel log leves are avaiable
Log::channel('telegram')->emergency($message);
Log::channel('telegram')->alert($message);
Log::channel('telegram')->critical($message);
Log::channel('telegram')->error($message);
Log::channel('telegram')->warning($message);
Log::channel('telegram')->notice($message);
Log::channel('telegram')->info($message);
Log::channel('telegram')->debug($message);