LasseHaslev / LaravelFieldable by LasseHaslev

Add functionality to add field and values dynamicly to laravel. How you use them is up to you.
47
0
2
Package Data
Maintainer Username: LasseHaslev
Maintainer Contact: lasse@haslev.no (Lasse S. Haslev)
Package Create Date: 2016-11-16
Package Last Update: 2017-03-04
Language: PHP
License: Unknown
Last Refreshed: 2024-11-22 15:03:53
Package Statistics
Total Downloads: 47
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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