title: Add [title] to fillable property to allow mass assignment on [App\Post]
body: <p>While inserting data in Mysql I have encountered the following error:</p>
  <p><em>&quot;Add [title] to the fillable property to allow mass assignment on [App\Post].&quot;</em></p>
  <p>Here is my code:</p>
  <pre><code>$post = Post::create([
  'title' =&gt; $request-&gt;input('title'),
  'body' =&gt; $request-&gt;input('body')
  ]);
  </code></pre>
  <p>While when I use another way to insert data, it is working fine:
  Following code is working fine :</p>
  <pre><code>//Create Post
  $post = new Post;
  $post-&gt;title = $request-&gt;input('title');
  $post-&gt;body = $request-&gt;input('body');
  $post-&gt;save();
     
  </code></pre>
  <p>Could anyone explain why an upper portion of the code is throwing an error?</p>