Laravel-Test-Helpers
Laravel-Test-Helpers copied to clipboard
Fixed not accepting multiple args in relationships
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.