if I have an Eloquent Model called Post, and the mysql table has:
integer ID, string Text
How do I convert this JSon:
{ post: { text: \'my text\'
Just turn it to array and fill an eloquent
$arr = json_decode($json, true); $post = new Post; $post->fill($arr);