lassehaslev / laravel-fieldable
此包最新版本(0.0.2)没有提供许可信息。
为laravel添加动态添加字段和值的功能。具体如何使用取决于您。
0.0.2
2017-03-04 14:42 UTC
Requires
- lassehaslev/laravel-sortable: 0.0.x
Requires (Dev)
- orchestra/testbench: 3.3.x
- phpunit/phpunit: ^5.6
This package is not auto-updated.
Last update: 2024-09-14 19:42:20 UTC
README
警告!此包处于开发中,发布前可能会有破坏应用程序的更改!!
安装
composer require lassehaslev/laravel-fieldable
使用方法
API
字段类型
// Add new FieldType $fieldType = FieldType::add([ 'name'=>'FieldType name', 'view'=>'rellative path from config( 'fieldable.views.fields' )' ]); // Get the full path to the field type view // To overwrite the setting, edit fieldable.views.path in config/fieldable.php $fieldType->viewPath();
开发
安装依赖
# Install dependencies composer install # Install dependencies for automatic tests yarn
运行测试
# Run one time npm run test # Automaticly run test on changes npm run dev