🇺L
Size: a a a
🇺L
S
🇺L
{% set arr = "" %}
{% for item in items|sort((a, b) => a.min_delivery_date <=> b.min_delivery_date) %}
.... здесь я хочу присвоить пополнить arr[] содержимым
{% endfor %}
🇺L
MG
🇺L
MG
🇺L
{% set fastest = items|sort((a, b) => a.min_delivery_date <=> b.min_delivery_date) %}
{{ dump ( fastest|first ) }}
A
{% set fastest = items|sort((a, b) => a.min_delivery_date <=> b.min_delivery_date) %}
{{ dump ( fastest|first ) }}
🇺L
🇺L
A
Нет ничего более постоянного, чем временное
КА
МГ
Route
которые возвращает массив по url courses
, как должен выглядить Route
, чтобы можно было получить конкретный объект, например по запросу courses/SLUG
?МГ
findOrFail
🇺L
$min_delivery_date = array_column($this['items'], 'min_delivery_date');
$total_price = array_column($this['items'], 'total_price');
array_multisort($min_delivery_date, SORT_DESC, $total_price, SORT_DESC, $this['items']);
EB
S
EB
EB