l5-repository icon indicating copy to clipboard operation
l5-repository copied to clipboard

add operators "in" and "between"

Open pedroufv opened this issue 6 years ago • 2 comments

I've created these two operators to increase search capability. Use the comma for each parameter as 'period: start_at, end_at' or 'id:1,2,3,4'

pedroufv avatar Mar 12 '18 21:03 pedroufv

I am not sure about this, if another requirement about this happens. We can again check this

bsormagec avatar Mar 14 '20 19:03 bsormagec

I've add new update to be possible use "in" and "between" on OR condition too on 631bd2ee61499f7fa9135eb518d19ff820ff701e

I think that class need be refactor, splitting the behavior in methods to improve read and mantaine.

I created a Trait to have the same thing as this class: https://github.com/laravelha/support/blob/master/src/Traits/RequestQueryBuildable.php

On this, I separate in methods, but it work into Eloquent

pedroufv avatar Mar 15 '20 19:03 pedroufv