title: Laravel setcookie() expects parameter 3 to be integer, float given
body: <p>I'm using Laravel 5.2, and I'm getting this error on first page. What is this error and how should I solve it?</p>
  
  <pre><code>ErrorException in Response.php line 348:
  setcookie() expects parameter 3 to be integer, float given
  in Response.php line 348
  at HandleExceptions-&gt;handleError('2', 'setcookie() expects parameter 3 to be integer, float given', '/var/www/dev/vendor/symfony/http-foundation/Response.php', '348', array('this' =&gt; object(Response), 'values' =&gt; array('Sat, 07 Oct 2017 08:31:17 GMT'), 'name' =&gt; 'Date', 'value' =&gt; 'Sat, 07 Oct 2017 08:31:17 GMT', 'cookie' =&gt; object(Cookie)))
  at setcookie('XSRF-TOKEN', 'eyJpdiI6InVMSlFsWGl3VzBcL3J5TEh6K3JZYU5BPT0iLCJ2YWx1ZSI6IlRnbitTUWNOWGNaZjE5MlJoVk1iWHJlQmR6U0xjMmNQME9BWDRoNDN2Q2NqWStoK3grQ2l4NGRnMXBZdHJ2b0NNVXZZdElvRXE3OWhvcVhiVGx5b3NBPT0iLCJtYWMiOiJkYmU3MDUyMzZkMTk4NTcwYmE1MTA0NWY0Njk5MDhkNzhlZDlmNTMzZjRjOGNkNGZhNmFmODk5ZWZkOGE2NWJmIn0=', '130356383897', '/', null, false, false) in Response.php line 348
  at Response-&gt;sendHeaders() in Response.php line 373
  at Response-&gt;send() in index.php line 56
  </code></pre>