spt / exception-monitor
Package for monitoring exceptions in Laravel
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/spt/exception-monitor
Requires
- php: ^7.2
- illuminate/support: 5.5.*|5.6.*|5.7.*|5.8.*|^6.0
This package is not auto-updated.
Last update: 2025-10-28 07:02:39 UTC
README
About
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.
Installation
You can install the package via Composer:
composer require spt/exception-monitor
Usage
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
Configuration
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
Recieving E-mail notifiaction for exceptions
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' => " " ];
Customising Views
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.
License
This SPT Exception Handling for Laravel is open-sourced software licensed under the MIT license