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!!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire