Laravel-Test-Helpers icon indicating copy to clipboard operation
Laravel-Test-Helpers copied to clipboard

Fixed not accepting multiple args in relationships

Open sorora opened this issue 11 years ago • 0 comments

A fix for the issue of it currently not likely when relationships have more than one argument defined (e.g. belongsTo('table', 'key') would fail the validation).

This fix checks how many arguments the parameter provides, and then does the check to see if the "model" bit matches the expected, while just providing the normal arguments back as is.

sorora avatar Jun 01 '13 00:06 sorora