Releases: phpsa/laravel-api-controller
Releases · phpsa/laravel-api-controller
Allows us to override the default fieldsets via a custom defaultFields method on your resource
Allows us to override the default fieldsets via a custom defaultFields method on your resource
Code Improvements
- includes fields patched to not try select unknown fields
- reduce redundent lookup on put event
- moved policies / validation to correct folder
- Apply fixes from StyleCI (#76) / Scrutinizer
AddFields Custom Field case Fix
fixes forced camel case when an custom field is appended
Table column parsing fix
- Fixes issue with table parsing where database connection overwritten / db.tablename notation used.
- minor code quality improvement in
Scope value splitable with pipes
Minor breaking change
if you are using double pipes in your scopes at the moment this will impact you as we now split on that before passing to the scope
Usability Update
- implemented #68
- scope naming convention tidied up and automatic removal of the scope keyword from a scope.
MorphMany
Magic Eloquent Getters
Allows api request fields / addfields to request fields mapped via the getFIELDAttribute in the eloquent model
Laravel 8 Support / Morph Support
- Added Laravel 8 support
- added storing via morphOne and MorphMany relationships to the api.
Fix Scope Case Issue
Fixes an issue where scopes case sensitivity in url parsing caused issues.