Download the PHP package brianbrian666/field-note without Composer
On this page you can find all versions of the php package brianbrian666/field-note. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download brianbrian666/field-note
More information about brianbrian666/field-note
Files in brianbrian666/field-note
Download brianbrian666/field-note
More information about brianbrian666/field-note
Files in brianbrian666/field-note
Vendor brianbrian666
Package field-note
Short Description a laravel database file note
License MIT
Homepage https://github.com/vorfreudeCode/fieldnote
Package field-note
Short Description a laravel database file note
License MIT
Homepage https://github.com/vorfreudeCode/fieldnote
Please rate this library. Is it a good library?
Informations about the package field-note
介绍
一个基于laravel,方便数据库字段类型说明的拓展
当前版本支持 Laravel 10、11、12、13,要求 PHP 8.1 或更高版本(Laravel 13 本身要求 PHP 8.3 或更高版本)。
用法
使用composer导入包。
服务提供商通过 Laravel Package Discovery 自动注册。
发布迁移。
创建表字段说明表。
在model使用use引用NoteTrait,可添加 $note_fields 为默认预加载的类型说明的字段。
使用 note() ,传参只会预加载参数里面包含的字段说明,不传参自动预加载 model 里面 $note_fields 的字段说明。
可以通过 FIELD_NOTE_SUFFIX 环境变量配置说明关系的后缀,默认为 Note,type 字段对应 typeNote。旧拼写 FILED_NOTE_SUFFIX 仍作为回退配置支持。
获取 model所有的字段说明。
获取字段的所有说明。
获取字段的某个值对应说明。
检查字段某个值是否有对应说明,可用在表单验证。
All versions of field-note with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
illuminate/database Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/database Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
The package brianbrian666/field-note contains the following files
Loading the files please wait ...