plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Feature Request]: autocompletion of relationships in factory `for` method

Open olivernybroe opened this issue 1 month ago • 2 comments

Feature Description

When using the for method, the second argument allows you to setup the relationship.

Image

It would be awesome if it suggested autocompletion and goto for the relationship string 👀

olivernybroe avatar Nov 19 '25 12:11 olivernybroe

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?

gorbunov avatar Nov 20 '25 04:11 gorbunov

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.

olivernybroe avatar Nov 20 '25 06:11 olivernybroe