PHP code example of hangjw / alarm

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

    

hangjw / alarm example snippets


php artisan vendor:publish

public function report($request, Exception $exception)
{
    $ding = \Hangjw\Alarm\Alarm::driver('ding');
    $ding->setException($exception)->setRemark('测试备注')->run();
    parent::report($exception);
}