PHPackages                             imansugirman/laravel-form-builder-extra - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. imansugirman/laravel-form-builder-extra

ActiveLibrary[Templating &amp; Views](/categories/templating)

imansugirman/laravel-form-builder-extra
=======================================

Based on laravel-form-builder (https://github.com/kristijanhusak/laravel-form-builder). That add default component and add view system.

311PHP

Since Apr 26Pushed 7y agoCompare

[ Source](https://github.com/imansugirman/FormBuilderLaravel)[ Packagist](https://packagist.org/packages/imansugirman/laravel-form-builder-extra)[ RSS](/packages/imansugirman-laravel-form-builder-extra/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c49aa361d5b57a6e7c64ed8c1637fd83abaabcbace58b550ae87c55468b14569/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f44697374696c6c65726965732f466f726d4275696c6465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Distilleries/FormBuilder/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/b75b5acbe957c6a888630b9a206aff4beea7eee0ee5db5034b6450e095a8afb1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f44697374696c6c65726965732f466f726d4275696c6465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Distilleries/FormBuilder/?branch=master)[![Build Status](https://camo.githubusercontent.com/68c31e97a523010068410fee9a2f3228960bf9bbc45df9327330211b02f25346/68747470733a2f2f7472617669732d63692e6f72672f44697374696c6c65726965732f466f726d4275696c6465722e737667)](https://travis-ci.org/Distilleries/FormBuilder)[![Total Downloads](https://camo.githubusercontent.com/0974b5e23fda9fcd0f3c1bb0154beecf4b9dc8d1fb5ef0f66c78cf11555b7c40/68747470733a2f2f706f7365722e707567782e6f72672f64697374696c6c65726965732f666f726d2d6275696c6465722f646f776e6c6f616473)](https://packagist.org/packages/distilleries/form-builder)[![Latest Stable Version](https://camo.githubusercontent.com/95f8a03f1b7992fc4eeb3a444d84390d06689e740207e44b5ee6fc352401987e/68747470733a2f2f706f7365722e707567782e6f72672f64697374696c6c65726965732f666f726d2d6275696c6465722f76657273696f6e)](https://packagist.org/packages/distilleries/form-builder)[![License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE)

Laravel 5 Form Builder
======================

[](#laravel-5-form-builder)

Based on laravel-form-builder (). I add default no editable form and few complex form fields. I add the validation system directly in the form part.

Table of contents
-----------------

[](#table-of-contents)

1. [Installation](#installation)
2. [Basic usage](#basic-usage)
3. [Type of form](#type-of-form)
4. [Form](#form)
5. [FormView](#formview)
6. [FormValidator](#formvalidator)1. [Use the validation client side](#use-the-validation-client-side)2. [Use the validation server side](#use-the-validation-server-side)3. [Check the rules on your controller](#check-the-rules-on-your-controller)
7. [List of fields](#list-of-fields)
8. [Input](#1-input)
9. [Choice](#2-choice)1. [Select](#21-select)2. [Radio](#22-radio)3. [Checkbox](#23-checkbox)4. [Ajax](#24-ajax)
10. [Tag](#3-tag)
11. [Upload](#4-upload)
12. [TinyMce](#5-tinymce)
13. [Textarea](#6-textarea)
14. [Button](#7-button)
15. [Address Picker](#8-address-picker)
16. [Form](#9-form)
17. [Controller](#controller)
18. [Troubleshooting](#troubleshooting)

Installation
------------

[](#installation)

Add on your composer.json

```
    "require": {
        "distilleries/form-builder": "2.*",
    }
```

run `composer update`.

Add Service provider to `config/app.php`:

```
    'providers' => [
        // ...
       'Distilleries\FormBuilder\FormBuilderServiceProvider',
    ]
```

And Facade (also in `config/app.php`)

```
    'aliases' => [
        // ...
        'FormBuilder'       => 'Distilleries\FormBuilder\Facades\FormBuilder',
    ]
```

Export the configuration:

```
php artisan vendor:publish --provider="Distilleries\FormBuilder\FormBuilderServiceProvider"

```

Export the views (optional):

```
php artisan vendor:publish --provider="Distilleries\FormBuilder\FormBuilderServiceProvider"  --tag="views"

```

### Basic usage

[](#basic-usage)

Creating form classes is easy. With a simple artisan command I can create form:

```
    php artisan make:form Forms/PostForm
```

you create form class in path `app/Forms/PostForm.php` that looks like this:

```
