В моем файле представления я написал
Код: Выделить всё
foreach($customer as $time){
$create= $time->created_at;
$update= $time->updated_at;
$create_at_difference=\Carbon\Carbon::createFromTimestamp(strtotime($create))->diff(\Carbon\Carbon::now())->days;
}
< strong>Как я могу это сделать?
Подробнее здесь: https://stackoverflow.com/questions/351 ... e-template
Мобильная версия