v0.4.2
Added
- Query builder with
where()->get()support for remote models. - Smart error handling based on the request's expected format.
- Error propagation improvements with tests for all status codes.
- Introduced
ParsesApiResponsetrait to centralize API response parsing logic. - Configurable HTTP methods for model updates and deletions.
updateById, instanceupdate,updateOrFail, andfindOrFailfor remote models.
Changed
- Refactored
QueryBuilderandApiModelto use the newParsesApiResponsetrait, removing duplicateparseResponseimplementations. - Improved README with installation details, key features, and basic-usage example.
Fixed
- Remote models hydrated from API responses are marked as existing to prevent local database queries.
Full Changelog: v0.4.1...v0.4.2