laravel/laravel — pull request #822 by codegefluester (2012-06-16 11:19:04+00:00)
Title: Apply filters to Input::all() and Input::get()

Getting input from Laravel is pretty easy and straight forward but if you want to filter/sanitize the input
you still have to do it on your own (or did I miss something in the Docs?).

I've added to new methods to Laravel\Input that let you define filters for the input:

**Examples**
```php
// Applies the defined filters to the Input::all() array
$data = Input::all_filtered(array('email' => FILTER_VALIDATE_EMAIL,
'age' => FILTER_VALIDATE_INT));
```

```php
// Validates the e-mail field
$email = Input::get_filtered('email', FILTER_VALIDATE_EMAIL);
```