PHPackages                             brainfab/laravel-form - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. brainfab/laravel-form

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

brainfab/laravel-form
=====================

Use Symfony Form component with Laravel framework

1132[3 issues](https://github.com/brainfab/laravel-form/issues)HTML

Since Jan 16Pushed 9y ago2 watchersCompare

[ Source](https://github.com/brainfab/laravel-form)[ Packagist](https://packagist.org/packages/brainfab/laravel-form)[ RSS](/packages/brainfab-laravel-form/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Use [Symfony Form](http://symfony.com/doc/current/components/form.html) component with Laravel framework
========================================================================================================

[](#use-symfony-form-component-with-laravel-framework)

[![Latest Stable Version](https://camo.githubusercontent.com/e09b2e1cf3af62aab0b4424652ba91971d069cea0d0788ab8b65a9763baf1e35/68747470733a2f2f706f7365722e707567782e6f72672f627261696e6661622f6c61726176656c2d666f726d2f762f737461626c65)](https://packagist.org/packages/brainfab/laravel-form) [![Total Downloads](https://camo.githubusercontent.com/73f24c754fb196d4c4a4f31f3076bd687c67f9b15b0d149610c53a8ebdb34a46/68747470733a2f2f706f7365722e707567782e6f72672f627261696e6661622f6c61726176656c2d666f726d2f646f776e6c6f616473)](https://packagist.org/packages/brainfab/laravel-form) [![Latest Unstable Version](https://camo.githubusercontent.com/07902ec788f8719fa00b35ea805cb57e2d1dfd8c8439e1eeacaed7ae93ffa881/68747470733a2f2f706f7365722e707567782e6f72672f627261696e6661622f6c61726176656c2d666f726d2f762f756e737461626c65)](https://packagist.org/packages/brainfab/laravel-form) [![License](https://camo.githubusercontent.com/5a83f24fb36cf09a2c08efd414892ff5c6c1a0547f4d99ab88ee11e47f1db518/68747470733a2f2f706f7365722e707567782e6f72672f627261696e6661622f6c61726176656c2d666f726d2f6c6963656e7365)](https://packagist.org/packages/brainfab/laravel-form) [![Code Climate](https://camo.githubusercontent.com/71b4bf672983fcd0b1eb81ade0d2283906509d11bfb1a9713f75f7b85a54c81b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f627261696e6661622f6c61726176656c2d666f726d2f6261646765732f6770612e737667)](https://codeclimate.com/github/brainfab/laravel-form)

Under construction

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

[](#installation)

Require this package with composer:

`composer require brainfab/laravel-form`

After updating composer, add the ServiceProvider to the providers array in config/app.php

`Brainfab\LaravelForm\LaravelFormsServiceProvider::class,`

Add the Facade to the aliases array in config/app.php

`'FormFactory' => Brainfab\LaravelForm\Facades\FormFactory::class,`

(optional) Copy the package config to your local config with the publish command:

`php artisan vendor:publish --tag=config `

(optional) Copy the package views to your local views/vendor folder with the publish command:

`php artisan vendor:publish --tag=views `

Console
-------

[](#console)

Generate form class: `php artisan make:form 'App\Forms\UserForm'`

Usage example
-------------

[](#usage-example)

app/Forms/UserForm.php

```
