Closed ajGulati05 closed 1 year ago
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
/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
sort_by
sort
/bowl-type?sort_by=name
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