Looking to hire Laravel developers? Try LaraJobs

laravel-fieldable maintained by lassehaslev

Description
Add functionality to add field and values dynamicly to laravel. How you use them is up to you.
Last update
2017/03/04 15:42 (dev-master)
Links
Downloads
48

Comments
comments powered by Disqus

lassehaslev/fieldable

Warning!! This package is under development and app breaking changes will come before release!!

Install

composer require lassehaslev/laravel-fieldable

Usage

API

FieldType

// 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();

Development

Install dependencies

# Install dependencies
composer install

# Install dependencies for automatic tests
yarn

Runing tests

# Run one time
npm run test

# Automaticly run test on changes
npm run dev