v4 - AllowedSorts not working
ajGulati05 opened this issue · comments
Php 7.4
QueryBuilder v4
return QueryBuilder::for(BowlType::class) ->allowedSorts(['name']) ->get();
Runs this query
select * from bowltype where bowltype.is_deleted= 0
On the URL /bowl-type?sort=name
Expected result is for it to run
select * from bowltype where bowltype.is_deleted= 0 order by name asc
Needs to be sort_by
not sort
example
/bowl-type?sort_by=name