sevenlabnl / laravel-or-abort Goto Github PK
View Code? Open in Web Editor NEWThis Laravel package exposes a trait for your Eloquent models. After adding the trait you can use `findOrAbort` and `FirstOrAbort` just like `findOrFail` and `firstOrFail`. Instead of throwing an exception, the Laravel abort function is called.
License: MIT License