title: How can I convert json to a Laravel Eloquent Model?
body: <p>if I have an Eloquent Model called Post, and the mysql table has:</p>
  
  <p>integer ID,
  string Text</p>
  
  <p>How do I convert this JSon:</p>
  
  <pre><code>{ post: { text: 'my text' } }
  </code></pre>
  
  <p>To the relevant Post object that, once received in the controller,  I can save to the database like this:</p>
  
  <pre><code>public function store(Post $post)
  {
      $post-&gt;save();
  }
  </code></pre>
  
  <p>I'm not looking to build the logic that would do that for me, but for the Laravel way (or could it be that there isn't one? I googled it with no relevant results).</p>