How to set default DateTime() in Laravel migrations?
<p>I am trying to achieve the functionality illustrated below:</p>

<pre><code>$table-&gt;dateTime('time')-&gt;default(new \DateTime());
</code></pre>

<p>This exact code is failing, because </p>

<blockquote>
  <p>[ErrorException] <br>
     Object of class DateTime could not be converted to string</p>
</blockquote>

<p>The other problem is, that I feel that there should be more robust/elegant way of solving this issue. So, how to correctly set a default <code>DateTime</code> value in migrations?</p>