plugin
plugin copied to clipboard
[Feature Request]: autocompletion of relationships in factory `for` method
Feature Description
When using the for method, the second argument allows you to setup the relationship.
It would be awesome if it suggested autocompletion and goto for the relationship string 👀
Thank you for taking the time to share your request! I've added it into internal feature tracker.
In this example, $employee model relation names will be completed, right?
Nope, it's all the relationships on the Team model that should be completed.
The list could be scoped down to only be the relationships which returns the same model type as the $employee variable is.