PHP code example of cirelramos / error-notification

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

    

cirelramos / error-notification example snippets


'providers' => [
    // ...
    Cirelramos\ErrorNotification\Providers\ServiceProvider::class,
],

SendEmailNotificationService::execute($exception, $directNotification);
SendSlackNotificationService::execute($exception, $directNotification, $channelSlack);


protected $commands = [
    SendGroupNotificationScheduler::class,
];


$schedule->command('error-notification:send-group-notification')
    ->withoutOverlapping()
    ->everyFiveMinutes()
    ->sendOutputTo('/dev/stdout');
sh
php artisan vendor:publish --provider="Cirelramos\ErrorNotification\Providers\ServiceProvider"