Closed ryanlcr55 closed 2 years ago
Without adding the additional complexity, this can currently be done by adding an orderBy
method on the filter:
public function orderBy($orderBy)
{
return $this->query->orderBy($orderBy, $this->input('order', 'DESC'));
}
When input has order_by column, apply order query to the eloquent automatically