PHP code example of audunru / monolog-pushover

1. Go to this page and download the library: Download audunru/monolog-pushover 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/ */

    

audunru / monolog-pushover example snippets


php artisan vendor:publish --tag=monolog-pushover-config

'channels' => [
    'pushover' => [
        'driver'  => 'monolog',
        'handler' => \audunru\MonologPushover\Handlers\PushoverHandler::class,
        'with'    => [
            'token' => env('PUSHOVER_TOKEN'),
            'users' => env('PUSHOVER_USER'),
        ],
    ],
],

Log::channel("pushover")->error("Test");