plugin icon indicating copy to clipboard operation
plugin copied to clipboard

ModelFilter

Open 1207702931 opened this issue 4 years ago • 7 comments

When the use Filterable; is used in the Model to extend the query function, the related ModelFilter class cannot provide a good prompt, especially $this->related, I don’t know if I didn’t master the skills or didn’t have such a function 微信图片_20210316173406

1207702931 avatar Mar 16 '21 09:03 1207702931

Hi. Sorry, it's hard to understand the question. Do you want to have a completion for the column parameter of related method?

adelf avatar Mar 16 '21 12:03 adelf

@adelf I'm very sorry, my English is very poor, what I want is to be able to complete the related, column parameter in the $this - >related method in the picture,

After adding the @ mixin bpackage annotation to this class, I can use the $this - > where() method to complete the column parameter, but not the $this - > related() method

微信图片_20210317085747

1207702931 avatar Mar 17 '21 01:03 1207702931

Let me add, I’m afraid I didn’t express it clearly, it’s almost the same as what you said, but the current situation is that the related and column parameters are not prompted.

1207702931 avatar Mar 17 '21 03:03 1207702931

Which package do you use?

adelf avatar Mar 17 '21 05:03 adelf

https://github.com/Tucker-Eric/EloquentFilter ?

adelf avatar Mar 17 '21 05:03 adelf

yes it is https://github.com/Tucker-Eric/EloquentFilter

1207702931 avatar Mar 17 '21 07:03 1207702931

Do you plan to implement this function?

1207702931 avatar Jun 08 '21 03:06 1207702931