2017 © Pedro Peláez
 

library laravel-forms

Quick and easy forms support for Laravel.

image

benallfree/laravel-forms

Quick and easy forms support for Laravel.

  • Sunday, September 10, 2017
  • by benallfree
  • Repository
  • 0 Watchers
  • 0 Stars
  • 25 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Forms

Forms is a Laravel 5 package designed to facilitate the easy use of Bootstrap-compatible forms., (*1)

Installation

Laravel Forms uses the [laravelcollective/html](https://laravelcollective.com/docs/5.3/html) and [benallfree/laravel-stapler-images](https://github.com/benallfree/laravel-stapler-images) packages. Configure these first by following their package instructions., (*2)

In app/config.php:, (*3)

Add, (*4)

'providers' => [
  // Laravel Stapler Images
  BenAllfree\LaravelStaplerImages\LaravelStaplerImagesServiceProvider::class,
  Codesleeve\LaravelStapler\Providers\L5ServiceProvider::class,

  // Laravel HTML
  Collective\Html\HtmlServiceProvider::class,

  // Laravel Forms
  BenAllfree\Forms\FormsServiceProvider::class,
]

Alias the models:, (*5)

'aliases' => [
  // Laravel Stapler Images
  'Image' => BenAllfree\LaravelStaplerImages\Image::class,
  'Attachment' => BenAllfree\LaravelStaplerImages\Attachment::class,

  // Laravel HTML
  'Form' => Collective\Html\FormFacade::class,
  'Html' => Collective\Html\HtmlFacade::class,

  // Carbon
  'Carbon'=>Carbon\Carbon::class,
]

Then publish:, (*6)

./artisan vendor:publish

Laravel Forms requires Bootstrap for form fields to render properly. Additionally, specific field types require other dependencies:, (*7)

  • markdownarea - requires SimpleMDE
  • date - requires bootstrap-datepicker
  • image - requires laravel-stapler-images

Either include these separately or check the resources/bower_components folder in this repository for compatible versions of all JS dependencies., (*8)

Usage

{!! Form::open(['files'=>true]) !!}
@include('forms.markdownarea', ['obj'=>$obj, 'name'=>'fieldName', 'placeholder'=>'This is the label'])
{!! Form::close() !!}

Field Types and Paramaters

checkbox

date

file

image

Expects thumb size to exist in the laravel-stapler-images package setup., (*9)

markdownarea

select

text

textarea

The Versions

10/09 2017

dev-master

9999999-dev

Quick and easy forms support for Laravel.

  Sources   Download

MIT

The Requires

 

laravel forms

31/12 2016

1.0.4

1.0.4.0

Quick and easy forms support for Laravel.

  Sources   Download

MIT

The Requires

 

laravel forms

09/12 2016

1.0.3

1.0.3.0

Quick and easy forms support for Laravel.

  Sources   Download

MIT

The Requires

 

laravel forms

23/11 2016

1.0.2

1.0.2.0

Quick and easy forms support for Laravel.

  Sources   Download

MIT

The Requires

 

laravel forms

14/11 2016

1.0.1

1.0.1.0

Quick and easy forms support for Laravel.

  Sources   Download

MIT

The Requires

 

laravel forms

14/11 2016

1.0.0

1.0.0.0

Quick and easy forms support for Laravel.

  Sources   Download

MIT

The Requires

 

laravel forms