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');
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…