laravel/laravel — pull request #392 by sqwk (2012-03-07 04:24:47+00:00)
Title: Validation rule keys

Mostly useful for checking whether a specific rule failed.

if (array_key_exists('required', $validation->errors->get('fieldname'))) { }