From f3c613afa61e713ad86dd645b8fb49fad22a3ebb Mon Sep 17 00:00:00 2001 From: cyvelnet Date: Sun, 25 Oct 2015 05:59:13 +0000 Subject: [PATCH] update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6da1104..fcd0aa7 100644 --- a/README.md +++ b/README.md @@ -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.