Laravel 5 - Check if date is today : <p>I'm creating a timeline and I'm nearly finished. I want that the color of the date for each timeline event is the same beside if the date is "today".</p>

<p>So I need something like: </p>

<pre><code>@if($event[$i]-&gt;created_at-&gt;format('d.m.Y') == *code or variable that says its today*)
     ....
@endif
</code></pre>

<p>But I couldn't figure out what I can do to save the todays date in a variable.. Does anybody knows a solution for this?</p>

<p>thanks! </p>
