brezgalov/yii2-arrayable-api-fields

以分隔符格式传递给api的数组

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

This package is auto-updated.

Last update: 2024-09-06 23:05:49 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

在模型行为中连接

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