spt/exception-monitor is a Laravel package for package for monitoring exceptions in laravel.
It currently has 0 GitHub stars and 7 downloads on Packagist (latest version v1.0.2).
Install it with composer require spt/exception-monitor.
Discover more Laravel packages by spt
or browse all Laravel packages to compare alternatives.
Last updated
The Exception monitor package allows you to view detailed reports of all exceptions occured in your laravel project and also notify via E-mail whenever an exception occurs.
You can install the package via Composer:
composer require spt/exception-monitor
To use the package, add the ExceptionHandlerServiceProvider Application Service Provider to the providers array in app/config/app.php:
'providers' => [
// ...
Spt\ExceptionHandling\ExceptionHandlerServiceProvider::class
];
And in app/app/Exceptions/Handler.php, change the header statement from
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
to
use Spt\ExceptionHandling\Exceptions\EmailHandler as ExceptionHandler
The defaults are set in config/sptexception.php. Publish the config to copy the file to your own config:
php artisan vendor:publish --provider="Spt\ExceptionHandling\ExceptionHandlerServiceProvider"
This will publish config, views and translation files
Set the enable_email value to true to get email notifiaction.
use an array of to address to send multiple emails in toEmailAddress
'ErrorEmail' => [
'enable_email' => true,
'toEmailAddress' => [],
'toBccEmailAddress' => [],
'fromEmailAddress' => " ",
'emailSubject' => " "
];
After publishing, the default view files will be copied to resources/view/spt-views If needed you can edit the email and dashbord views to your custom needs.
This SPT Exception Handling for Laravel is open-sourced software licensed under the MIT license