plugin
plugin copied to clipboard
[Feature Request]: Type hint relation class in "with" query builder
Feature Description
If possible, add a query builder class hint for the relationship.
Open dropdown from cursor...
Model::query()->with(['relatedModel' => function (<cursor>) {}])
and choose:
Model::query()->with(['relatedModel' => function (\Illuminate\Database\Eloquent\Relations\HasMany $query) {}])