PHP code example of ktith / laravel-exception-notifier
1. Go to this page and download the library: Download ktith/laravel-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/ */
ktith / laravel-exception-notifier example snippets
use Ktith\Laravelexceptionnotifier\Events\ExceptionNotifier;
// for Laravel 11 bootstrap/app.php
// notify to notifire laravel 11
$exceptions->render(function (Exception $e){
event(new ExceptionNotifier($e));
});
use Ktith\Laravelexceptionnotifier\Events\ExceptionNotifier;
// notify to notifire by regiser
public function render($request, Throwable $exception) {
event(new ExceptionNotifier($e));
return parent::render($request, $exception);
}