Skip to content

Commit

Permalink
Update helpers.md
Browse files Browse the repository at this point in the history
  • Loading branch information
laurencei committed Jul 3, 2015
1 parent 1c80da3 commit f7889a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Laravel includes a variety of "helper" PHP functions. Many of these functions ar
[env](#method-env)
[event](#method-event)
[factory](#method-factory)
[method_field](#method-method-field)
[old](#method-old)
[redirect](#method-redirect)
[response](#method-response)
Expand Down Expand Up @@ -689,6 +690,13 @@ The `factory` function creates a model factory builder for a given class, name,

$user = factory('App\User')->make();

<a name="method-method-field"></a>
#### `method_field()` {#collection-method}

The `method_field` function generates an HTML `hidden` input field containing the spoofed value of the form type. For example, using [Blade syntax](/docs/{{version}}/blade):

{!! method_field('delete') !!}

<a name="method-old"></a>
#### `old()` {#collection-method}

Expand Down

0 comments on commit f7889a7

Please sign in to comment.