Laravel Exception Recorder and Notifier Package

Packages

March 25th, 2016

LERN (Laravel Exception Recorder and Notifier) is a package that will record exceptions into a database and will send you a notification.

It currently supports notifications via Email, Pushover, Slack, Hipchat, Fleephook, and Flowdock. Once installed implementation is added to app/Exceptions/Handler.php file:

1public function report(Exception $e)
2{
3 if ($this->shouldReport($e)) {
4 LERN::handle($e); //Record and Notify the Exception
5 /*
6 OR...
7 LERN::record($e); //Record the Exception to the database
8 LERN::notify($e); //Notify the Exception
9 */
10 }
11
12 return parent::report($e);
13}

Filed in:

Eric L. Barnes

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Laravel News Partners