Skip to content

Commit

Permalink
Update README to include example and better configuration instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
manavo committed Oct 17, 2014
1 parent 44f082b commit 0952637
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ composer require manavo/laravel-bootstrap-forms ~0.0

## Configure

Make sure you comment out the existing HtmlServiceProvider (Illuminate\Html\HtmlServiceProvider):

```php
<?php
// File: app/config/app.php
Expand All @@ -25,3 +27,21 @@ return array(
// ...
);
```

No change is necessary for the Form Facade.

## Example

```
{{ Form::open([ 'route' => 'posts.store' ]) }}
{{ Form::openGroup('title', 'Title') }}
{{ Form::text('title') }}
{{ Form::closeGroup() }}
{{ Form::openGroup('status', 'Status') }}
{{ Form::select('status', $statusOptions) }}
{{ Form::closeGroup() }}
{{ Form::close() }}
```

0 comments on commit 0952637

Please sign in to comment.