PHP code example of huyct / log-helper

1. Go to this page and download the library: Download huyct/log-helper 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/ */

    

huyct / log-helper example snippets


\Huyct\LogHelper\providers\LogHelperProvider::class,
bash
php artisan vendor:publish --tag=loghelper
# Position of file config: config/loghelper.php
dotenv
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHANNEL_LOG_ID=    
TELEGRAM_CHANNEL_ERROR_ID=
// these lines if you lack
HELPER_LOG_DRIVER=telegram
HELPER_LOG_ENABLE=true
HELPER_LOG_QUEUE_NAME=send-log