mercredi 28 octobre 2015

Laravel 5 Carbon format datetime

I have an array that return the following date time:

$item['created_at'] => "2015-10-28 19:18:44"

How in laravel using carbon format into this format M d Y.

Currently this method return an error

$suborder['payment_date'] = $item['created_at']->format('M d Y');

Thanks!!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1jSUOfP
via IFTTT

Aucun commentaire:

Enregistrer un commentaire