plugin
plugin copied to clipboard
[Feature Request]: Ability to autocomplete dynamic relationships
Feature Description
Ability to autocomplete relationships created with Model::resolveRelationUsing
https://laravel.com/docs/9.x/eloquent-relationships#dynamic-relationships
Hello. Could you share the code where you are using it? I suppose I can't help in that case, because I don't run PHP code, so I couldn't understand the model class and relation name...
Creating a dynamic relationship 'nicknames'
make autocomplete for this cases:
Why don't you add this relation in the Branch class? resolveRelationUsing
is for dynamic relations, when class or relation name is dynamic, so they can't be added as a class method...
Branch belongs to another composer package, it cannot be changed
Ok. Got it. Thank you.