jarivas / laravel-cast-json-models
A simple and direct way of casting json objects to models
1.2.0
2024-10-21 08:42 UTC
Requires (Dev)
- orchestra/testbench: ^9.5
README
- 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