AllowedFilter::scope is not accessing the updated request
ajGulati05 opened this issue · comments
I have a middleware that converts the filter['starts_between'] to datetime. The original is just in date. The request that the controller gets also has the updated request but the filter uses the original request object not the updated one. Is there a reason behind this or an actual bug?
Went through the code and realized package accesses the global request. Workaround was to pass the request in QueryBuilder
QueryBuilder::for($query, new Request(['filter' => $request->input('filter', [])]))