2017 © Pedro Peláez
 

library formfield

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

image

luthfi/formfield

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  • Monday, June 25, 2018
  • by nafiesl
  • Repository
  • 1 Watchers
  • 6 Stars
  • 2,016 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 21 Versions
  • 28 % Grown

The README.md

Laravel Boostrap Form Field

StyleCI Build Status Total Downloads, (*1)

This package is the extension of Laravelcollective Form for Laravel 5 and newer with Twitter Bootstrap 3, 4 and 5 form fields wrapper., (*2)

How to install

For Bootstrap 5

If you are using Bootstrap 5, please use 3.* version instead:, (*3)

composer require luthfi/formfield 3.*
For Bootstrap 4

If you are using Bootstrap 4, please use 2.* version instead:, (*4)

composer require luthfi/formfield 2.*
For Bootstrap 3

If you are using Bootstrap 3, please use 1.* version instead:, (*5)

composer require luthfi/formfield 1.*

Install this package through Composer. Run following from terminal:, (*6)

composer require luthfi/formfield
For laravel 5.5 and newer

this package will auto discovered, (*7)

For laravel 5.3 and 5.4

Update config/app.php, add provider and aliases :, (*8)

// providers
Luthfi\FormField\FormFieldServiceProvider::class,

// aliases
'FormField' => Luthfi\FormField\FormFieldFacade::class,
'Form'      => Collective\Html\FormFacade::class,
'Html'      => Collective\Html\HtmlFacade::class,

How to use

In your blade file, use this following sintax :, (*9)

{!! FormField::text('name') !!}

will produce:, (*10)

<div class="form-group ">
    <label for="name" class="control-label">Name</label>
    <input class="form-control" name="name" id="name" type="text">
</div>

Or other example for Checkbox and Radios. We can use numeric array or associative array for Labels and Values :, (*11)

{!! FormField::checkboxes('group', [1 => 'Admin', 'Member']) !!}
{!! FormField::radios('status', ['a' => 'Active', 'b' => 'Inactive']) !!}

And they will produce :, (*12)




Avaliable Form Fields

{!! FormField::open($options) !!}
{!! FormField::text('name') !!}
{!! FormField::textarea('field_name') !!}
{!! FormField::select('field_name', $options) !!}
{!! FormField::multiSelect('field_name', $options) !!}
{!! FormField::email('email_field') !!}
{!! FormField::password('password_field') !!}
{!! FormField::radios('status', ['a' => 'Active', 'b' => 'Inactive']) !!}
{!! FormField::checkboxes('group', [1 => 'Admin', 'Member']) !!}
{!! FormField::textDisplay('label', 'value_to_display') !!}
{!! FormField::file('file_field') !!}
{!! FormField::price('price_field') !!}
{!! FormField::close() !!}

The Versions

25/06 2018

dev-master

9999999-dev

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

25/06 2018

0.2.8

0.2.8.0

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

17/05 2018

0.2.7

0.2.7.0

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

12/05 2018

0.2.6

0.2.6.0

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

11/03 2018

dev-analysis-z9VnK9

dev-analysis-z9VnK9

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

15/02 2018

0.2.5

0.2.5.0

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

15/12 2017

0.2.4

0.2.4.0

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

01/12 2017

0.2.3

0.2.3.0

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

10/11 2017

0.2.2

0.2.2.0

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

14/10 2017

dev-develop

dev-develop

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

09/10 2017

0.2.1

0.2.1.0

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

05/09 2017

0.2.0

0.2.0.0

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

31/08 2017

dev-lv55-compatibility

dev-lv55-compatibility

Laravel Form Field the extension of Laravelcollective Form for Laravel 5.3, 5.4 and 5.5 with Twitter Bootstrap 3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

16/06 2017

0.1.6

0.1.6.0

Form Field helper class for Laravel 5.3 with Twitter Bootstrap

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

03/05 2017

0.1.5

0.1.5.0

Form Field helper class for Laravel 5.3 with Twitter Bootstrap

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

22/04 2017

0.1.4

0.1.4.0

Form Field helper class for Laravel 5.3 with Twitter Bootstrap

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

19/04 2017

0.1.3

0.1.3.0

Form Field helper class for Laravel 5.3 with Twitter Bootstrap

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

24/02 2017

0.1.2

0.1.2.0

Form Field helper class for Laravel 5.3 with Twitter Bootstrap

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

24/02 2017

dev-analysis-qxJYeN

dev-analysis-qxJYeN

Form Field helper class for Laravel 5.3 with Twitter Bootstrap

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nafies Luthfi

22/01 2017

0.1.1

0.1.1.0

Form Field helper class for Laravel 5.3 with Twitter Bootstrap

  Sources   Download

MIT

The Requires

 

by Nafies Luthfi

21/01 2017

0.1.0

0.1.0.0

Form Field helper class for Laravel 5.3 with Twitter Bootstrap

  Sources   Download

MIT

The Requires

 

by Nafies Luthfi