plokko / formidable
Vue.js form generator for Laravel
0.0.1-alpha
2018-02-09 17:15 UTC
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2024-12-18 02:12:05 UTC
README
A Laravel Vue.js form builder
Installation
Install via composer
composer require plokko/formidable
Register Service Provider
If you use Laravel <5.5 you need to manually register the provider and facade
Add service provider to config/app.php
in providers
section
Plokko\Formidable\ServiceProvider::class,
Register package facade in config/app.php
in aliases
section
Plokko\Formidable\Facades\Formidable::class,
Publish Configuration File
php artisan vendor:publish --provider="Plokko\Formidable\ServiceProvider" --tag="config"
Usage
Formidable is composed of a Vuejs library and a php helper to help you build the field configuration
Javascript
...
###PHP helper
$fields =Formidable::fields();