dineshrabara / easyform by Dinesh

Laravel form builder,Easy way to make Forms with laravel
1,130
1
2
Package Data
Maintainer Username: Dinesh
Maintainer Contact: dinesh.rabara@gmail.com (Dinesh Rabara)
Package Create Date: 2015-06-03
Package Last Update: 2015-08-13
Language: PHP
License: MIT
Last Refreshed: 2024-03-27 03:17:51
Package Statistics
Total Downloads: 1,130
Monthly Downloads: 6
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

easyform

Installation

Latest Stable Version Total Downloads Latest Unstable Version License Build Status

Begin by installing this package through Composer. Edit your project's composer.json file to require dinesh/easyform.

"require": {
	"laravel/framework": "4.*",
	"dinesh/easyform": "dev-master"
}

Next, update Composer from the Terminal:

composer update

OR

composer require dinesh/easyform:dev-master

Once this operation completes, the next step is to add the service provider. Open app/config/app.php, and add a new item to the providers array.

'Dinesh\Easyform\EasyformServiceProvider',

Next, you need to publish it's config file(s).

php artisan config:publish dinesh/easyform

default config template


return array(
    'templates' => array(
        'default' => '<div class="form-group {{error-has}}">
                    {{label}}
                    <div class="controls col-sm-5">
                        {{tag}}
                        {{error-first}}
                    </div>
                </div>',
        'default2' => '<div class="form-group">
                    {{label}}00000000
                    <div class="controls col-sm-5">
                        {{tag}}
                    </div>
                </div>',
    ),
    'tags' => array('{{test}}' => 'default_value'),
);

example


{{EasyForm::text('first_name',null,array('class'=> 'form-control'))
          ->label('First Name:',array('class'=>'col-sm-2 control-label'))
          ->error($errors)}}