Handle nothing being passed into sort() filter
This commit is contained in:
parent
4242805e5c
commit
0c4a691592
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ class InvoiceFilters extends QueryFilters
|
|||
* @param string sort formatted as column|asc
|
||||
* @return Builder
|
||||
*/
|
||||
public function sort(string $sort) : Builder
|
||||
public function sort(string $sort = '') : Builder
|
||||
{
|
||||
$sort_col = explode('|', $sort);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue