Testing Dates In Laravel
Imagine we have a website that shows a list of upcoming films.
The list may comprise of a title and release date.
<div>
<h2 class=”title”>{!! $film->title !!}</h2>
<p>{!! $film->release_date->format(‘l, F jS, Y’) !!}</p>
</div>