2021-07-30

How to deserialize a Laravel Eloquent model, i.e. reverse toArray(), attributesToArray() or toJson()?

Laravel serialization documentation describes in detail how to get array / JSON representation of Eloquent models.

However, it doesn't currently say a word about reversing this: getting Eloquent models out of arrays / JSON.

How do I do this? Thanks!



from Recent Questions - Stack Overflow https://ift.tt/37etR0x
https://ift.tt/eA8V8J

No comments:

Post a Comment