laravel/framework — pull request #2945 by cangelis (2013-12-13 14:58:45+00:00)
Title: [Proposal] Support for easier custom rule definition for Validator

I am not sure this makes sense to everyone but I'd like to propose an another option to define a custom rule for `Validator`.

**Example code:**

```php
Validator::make(Input::all(), array(
'custom_rule' => function($attribute, $value, $parameters) {
return true;
}
))
```