I want to display something like 01 June from created_at column. I tried doing something like this which I know, is quite dumb thing.
<span class="day">{{date('m', $new->created_at)}}</span>
{{ $object->created_at->format('d M') }}
for day and month
{{ $object->created_at->format('M') }}
for only month
{{ $object->created_at->format('d') }}
for only day
$object
referred to your passed variable from the controller to the blade
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With