Add [title] to fillable property to allow mass assignment on [App\Post] : <p>While inserting data in Mysql I have encountered with the following error:</p>

<p><em>"Add [title] to fillable property to allow mass assignment on [App\Post]."</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 upper portion of code is throwing an error?</p>
