brezgalov/yii2-arrayable-api-fields

arrays passed to api in string format with separator

v1.0.1 2021-08-06 16:24 UTC

This package is auto-updated.

Last update: 2024-05-06 22:24:26 UTC


README

Установка через composer:

composer require brezgalov/yii2-arrayable-api-fields --prefer-dist

Для php8:

composer require brezgalov/yii2-arrayable-api-fields --prefer-dist --ignore-platform-reqs

Подключить в behaviours модели:

'arrayableInput' => [
    'class' => ArrayableInputBehaviour::class,
    'fields' => ['id', 'exclude_id'],
],