Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 0952637

Browse files
committed
Update README to include example and better configuration instructions
1 parent 44f082b commit 0952637

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ composer require manavo/laravel-bootstrap-forms ~0.0
1010

1111
## Configure
1212

13+
Make sure you comment out the existing HtmlServiceProvider (Illuminate\Html\HtmlServiceProvider):
14+
1315
```php
1416
<?php
1517
// File: app/config/app.php
@@ -25,3 +27,21 @@ return array(
2527
// ...
2628
);
2729
```
30+
31+
No change is necessary for the Form Facade.
32+
33+
## Example
34+
35+
```
36+
{{ Form::open([ 'route' => 'posts.store' ]) }}
37+
38+
{{ Form::openGroup('title', 'Title') }}
39+
{{ Form::text('title') }}
40+
{{ Form::closeGroup() }}
41+
42+
{{ Form::openGroup('status', 'Status') }}
43+
{{ Form::select('status', $statusOptions) }}
44+
{{ Form::closeGroup() }}
45+
46+
{{ Form::close() }}
47+
```

0 commit comments

Comments
 (0)