spatie/laravel-or-abort
Adds an OrAbort trait to Laravel models to abort with a chosen HTTP status when common calls fail (e.g., findOrAbort($id, 500) instead of returning null/false). Note: this package is no longer maintained.
|
Package
|
Constraint
|
|---|---|
| illuminate/support | ^5.0 |
|
Package
|
Constraint
|
|---|---|
| phpunit/phpunit | 4.* |
| scrutinizer/ocular | ~1.1 |
How can I help you explore Laravel packages today?