Skip to content

Commit

Permalink
Ensure method name is in camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
mirovit committed Oct 10, 2016
1 parent 05d282f commit 513230f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public function apply(Builder $builder)
$this->builder = $builder;

foreach ($this->request->all() as $name => $value) {
$name = camel_case($name);

if (! method_exists($this, $name)) {
continue;
}
Expand Down

0 comments on commit 513230f

Please sign in to comment.