a
Size: a a a
ВУ
А
{% set array = [] %}Почему оно так в массив не добавляется? Если делать set array = service.id, то будет только последний id
{% for service in employee.services %}
{% set array = array|merge([service.id]) %}
{% endfor %}
ES
ES
V
{% set array = [] %}Почему оно так в массив не добавляется? Если делать set array = service.id, то будет только последний id
{% for service in employee.services %}
{% set array = array|merge([service.id]) %}
{% endfor %}
ES
А
$employee = Employee::where([но так не пашет че-то
['id', $id]
])->first();
$ids = $employee->with('services')->get()->modelKeys();
I