Skip to content

v0.4.2

Choose a tag to compare

@KroderDev KroderDev released this 21 Jul 12:10
· 24 commits to main since this release
57fca2f

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 ParsesApiResponse trait to centralize API response parsing logic.
  • Configurable HTTP methods for model updates and deletions.
  • updateById, instance update, updateOrFail, and findOrFail for remote models.

Changed

  • Refactored QueryBuilder and ApiModel to use the new ParsesApiResponse trait, removing duplicate parseResponse implementations.
  • 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