I have an array that returns the following date time:
$item['created_at'] => "2015-10-28 19:18:44"
How do I change the date to M d Y
format in Laravel using Carbon?
Currently it returns with an error
$suborder['payment_date'] = $item['created_at']->format('M d Y');