You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+15-18Lines changed: 15 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,11 @@ Laravel integration:
7
7
- Add validation errors
8
8
- Translate field names
9
9
10
-
See for Laravel 5.1 the [0.2 branch](https://github.com/barryvdh/laravel-form-bridge/tree/v0.2.2)
11
-
12
10
### Install
13
11
-`composer require barryvdh/laravel-form-bridge`
14
12
- Add `Barryvdh\Form\ServiceProvider::class,` to you ServiceProviders.
15
-
- (optional) Add `'FormRenderer' => Barryvdh\Form\Facade\FormRenderer::class,` to your Facades.
16
13
- (optional) Add `'FormFactory' => Barryvdh\Form\Facade\FormFactory::class,` to your Facades.
14
+
- (optional) Add `'FormRenderer' => Barryvdh\Form\Facade\FormRenderer::class,` to your Facades.
17
15
18
16
### Basic example
19
17
@@ -26,38 +24,36 @@ Or you can create a Named form, with an empty name.
26
24
If you need to set more options, use the `createBuilder` function instead of `create`, to be able to use `setAction()` etc. You need to call `->getForm()` to get the actual form instance again.
27
25
28
26
```php
27
+
use FormFactory;
29
28
use Illuminate\Http\Request;
30
29
use Symfony\Component\Form\FormFactoryInterface;
31
30
use Symfony\Component\Form\Extension\Core\Type\FormType;
32
31
use Symfony\Component\Form\Extension\Core\Type\TextType;
33
32
use Symfony\Component\Form\Extension\Core\Type\EmailType;
34
33
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
0 commit comments