Looking to hire Laravel developers? Try LaraJobs

laravel-cast-json-models maintained by multisafepay

Description
A simple and direct way of casting json objects to models
Author
Last update
2023/02/20 15:29 (dev-main)
Links
Downloads
89

Comments
comments powered by Disqus

Laravel json casting

  • A easy solution to have decriptions of json objects POCO style, please check tests for examples
  • The method Object::collection will convert an array of objects to an collection of PHP objects that extends from CastModels\Model
  • The objects that extends from CastModels\Model has the method toArray so can be returned in a response directly