sourcetoad/enhanced-resources
Laravel API resource enhancement that lets a single Resource expose multiple output “formats” via PHP attributes. Mark methods with #[Format], pick formats with ->format('name'), and optionally set a default with #[IsDefault] to avoid exceptions.
None
|
Package
|
Constraint
|
|---|---|
| laravel/pint | 1.19||^1.27 |
| orchestra/testbench | ^8.0|^9.0|^10.0||^11.0 |
| phpunit/phpunit | ^10.0|^11.5||^12.5.12 |
How can I help you explore Laravel packages today?