Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyvelnet committed Oct 25, 2015
1 parent 40079bf commit f3c613a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

We all face the problems when user submit a form, and all these form data is a mess, sometime we even wanted to trim the inputs, cast them, and reformat them, in fact it is not the hardest thing in the world, but these small tasks really make our code look lengthy, and InputPipes comes into play.

`$inputs = Pipe::make(Input::only('email', 'name'), ['trim|lower', 'trim|ucword'])->get();`
`$inputs = Pipe::make(Input::all(), ['email' => 'trim|lower', 'name' => 'trim|ucword'])->get();`

This single line of code simply the time we spend on formatting input.

Expand Down

0 comments on commit f3c613a

Please sign in to comment.