lukeraymonddowning / poser

Create class based model factories in Laravel applications in seconds.
MIT License
276 stars 10 forks source link

Adds a Relationship class to better handle data in relationships #69

Closed lukeraymonddowning closed 4 years ago

lukeraymonddowning commented 4 years ago

Previously, we have used a Collection of arrays to handle relationship data. I want to replace this with a class to offer improved readability and simplicity.

I have created a Relationship class, which is used when adding any type of relationship to Poser. This Relationship class has a number of helper methods which go a long way to simplify some of the method calls in Factory itself.

lukeraymonddowning commented 4 years ago

Added in another PR