laravel/laravel — pull request #1530 by spib (2012-12-17 11:36:26+00:00)
Title: Fix for validate_required_with

Hi,

If using dynamic model properties (with eloquent for example), this validation routine will throw an error if the required with field does not exist.

I've added an array_get call to safely obtain the value from the attributes array so that it will not throw an error if the attribute does not (yet) exist