Skip to content

Commit

Permalink
Allow for nestead filter names
Browse files Browse the repository at this point in the history
  • Loading branch information
mirovit committed Jan 23, 2018
1 parent 188a1fa commit 0ac67c3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,17 @@ public function sort(array $sort)
*/
protected function filters()
{
return $this->request->all();
$filters = array_dot($this->request->all());

foreach($filters as $filter => $value) {
unset($filters[$filter]);

$filter = studly_case(str_replace('.', '_', $filter));

$filters[$filter] = $value;
}

return $filters;
}

/**
Expand Down

0 comments on commit 0ac67c3

Please sign in to comment.