lassehaslev/laravel-fieldable

此包最新版本(0.0.2)没有提供许可信息。

为laravel添加动态添加字段和值的功能。具体如何使用取决于您。

安装: 45

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:laravel插件

0.0.2 2017-03-04 14:42 UTC

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