PHP code example of adaptit-darshan / exception-notifier

1. Go to this page and download the library: Download adaptit-darshan/exception-notifier 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/ */

    

adaptit-darshan / exception-notifier example snippets


'email' => [
    env('EXCEPTION_NOTIFIER_EMAIL', ['[email protected]'])
],

'capture' => [
    \Symfony\Component\ErrorHandler\Error\FatalError::class,
],

'capture' => [
    '*'
],

'ignored_exception' => [
    \Illuminate\Validation\ValidationException::class,
],

'ignored_bots' => [
    'googlebot',
    'bingbot',
    'slurp', 
    'ia_archiver',
],

use ExceptionNotifier\ExceptionNotifier;

$notifier = new ExceptionNotifier(config('exception-notifier'));
$notifier->notify(new \Exception('Custom exception message'));
bash
php artisan vendor:publish --provider="AdaptItDarshan\ExceptionNotifier\Providers\ExceptionNotifierServiceProvider"