Skip to content

Commit

Permalink
Merge pull request #57 from kerwitz/master
Browse files Browse the repository at this point in the history
Fix #56
  • Loading branch information
nicolaslopezj committed May 20, 2015
2 parents edaae62 + df3de1e commit 8b049e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
],
"require": {
"php": ">=5.4.0",
"illuminate/database": "4.2.x|~5.0"
"illuminate/database": "4.2.x|~5.0",
"ext-mbstring": "*"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/SearchableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function scopeSearch(Builder $q, $search, $threshold = null, $entireText
return $q;
}

$search = strtolower(trim($search));
$search = mb_strtolower(trim($search));
$words = explode(' ', $search);

$selects = [];
Expand Down

0 comments on commit 8b049e0

Please sign in to comment.