alberto-bottarini/nova-exclusive-fields
Composer 安装命令:
composer require alberto-bottarini/nova-exclusive-fields
包简介
A Laravel Nova field.
README 文档
README
This packages includes some ready-to-use Laravel Nova Exclusive fields.
What is a exclusive field?
An exclusive field is a special field that limits its value only on a database record. When you change this field for a record, exclusive field takes care to restore all other records to its default value.
Imagine to have a is_admin boolean column on users table. Business requirements force you to have at most only a admin user. Changing value for a model, will reset all the other models' value.
Fields type
-
ExclusiveBoolean. It presents to user using a standard Laravel Nova Boolean field - In order to mantain data consistency you should set this field as not nullable.
-
ExclusiveSelect. It presents to user using a standard Laravel Nova Select field - In order to mantain data consistency you should set this field as nullable.
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-20