jeudi 11 octobre 2018

Best approach to obtain minutes passed from a resourse creation?

I need to pass to my view the time in minutes passed by an order submission. What is the best way to achieve that in Laravel and PHP? I've tried that but not working very well: $order->minutes = (new DateTime($order->created_at))->diff(new DateTime("now"))->format('%I');



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire