alexeymezenin / laravel-best-practices

Laravel best practices
11.24k stars 2.37k forks source link

Converting from and back to json #136

Closed NicoHood closed 1 year ago

NicoHood commented 2 years ago

Hi! I found some very useful stuff in here, that makes it easier for me as a beginner to get things right. What I did not understand yet is how to properly convert a model from and to json. I've posted my question on stackoverflow, so more people can find it. If someone has a good tip on that, we could add it to this repository as well.

https://stackoverflow.com/questions/72377838/convert-json-request-to-eloquent-model-and-back-to-database

Thanks :)

spekulatius commented 1 year ago

Hey @NicoHood

Thanks for this, closing it for now. Feel free to come back to it once the question has been clarified fully.

Cheers