Quantcast
Channel: Laravel News
Viewing all articles
Browse latest Browse all 1828

Laravel Exception Recorder and Notifier Package

$
0
0

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:

public function report(Exception $e)
{
    if ($this->shouldReport($e)) {
        LERN::handle($e); //Record and Notify the Exception
        /*
        OR...
        LERN::record($e); //Record the Exception to the database
        LERN::notify($e); //Notify the Exception
        */
    }

    return parent::report($e);
}

Viewing all articles
Browse latest Browse all 1828

Trending Articles