DEV Community

Discussion on: Making the advanced query filter with Eloquent Filter in Laravel

Collapse
 
goppi0 profile image
goppi0

I have got a parameter in my API call that is not related to a table field and as such should not be used by the filter. I didn't add it to the whitelist (similar like your page parameter) but I'm getting the error "You must set flexibility in whiteListFilter in SpecialOffer\n or create a override method."

I guess I need to create an override method - how do I do that?

thanks
goppi

Collapse
 
mehdifathi profile image
Mehdi Fathi

You must set white list array in your model.you can read this article again.