This is an elegant way to handle exceptions in Laravel apps.
Compatible with Laravel 5. To install, run:
$ composer install chocoholics/exceptional
.
To use, simply add the Exceptional trait to the desired Eloquent model
use Chocoholics\Exceptional\Exceptional;
class YourClassName
{
use Exceptional;
}
If you discover a security vulnerability within Exceptional, please send an e-mail to Obura Tongoi at [email protected]. All security vulnerabilities will be promptly addressed.
The Exceptional package is open-sourced software licensed under the MIT license.