I am trying to convert some dates
<p>{{ Carbon\Carbon::parse($post->created_at)->diffForHumans() }}</p> This works fine as the date is in the format 2017-05-01 10:52:51
However I also have the dates stored as unix timestamps.
How can I covert these to a date?
I already tried
{{ Carbon\Carbon::createFromTimestamp($post->created_at)->toDateTimeString() }} Error - A non well formed numeric value encountered
The dump is
<pre class="xdebug-var-dump" dir="ltr"> <small>int</small> <font color="#4e9a06">1493637826</font> </pre>
$post->created_atvalue? (var_export)