HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Filter discussion by Name
nithish
New
Comments
Neither the DiscussionModel nor the model implement the like() method from the SQL driver which would allow filtering by names. But the SQL driver is accessible through the DiscussionModel. Therefore you can do it like that:
This way you directly add the "like" to the query builder before the
get()
method starts doing its work. 😉Thanks a lot!
See the FilterDiscussion plugin and specifically at the LK parameter.