z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.15k stars 2.82k forks source link

Laravel-Admin Raw Query (Having Filter or New Filter Method) #5679

Open optiktr opened 1 year ago

optiktr commented 1 year ago

Description:

I can't usingw "having" on filters. Because I'm using a raw query. "where" doesn't work for me.

//$grid->model("myCustomRawQuery)

1) What can I do to create a new query method (filter).

or

2) how do I query "having" for filters

Steps To Reproduce: