You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[11.x] add ability to disable relationships in factories (#53450)
* add ability to disable relationships
sometimes when `make`ing or `create`ing a model, we don't actually care about the relationship. this new property and method allow us to turn them all off at once. when disabled, any attribute that is assigned a factory will instead return `null`.
* change method name
per @taylorotwell
* rename property and invert logic
* persist `withoutRelationships` across new statics
* refactor
* Update Factory.php
---------
Co-authored-by: Taylor Otwell <[email protected]>
0 commit comments