Skip to content

Commit

Permalink
Autocomplete- Jquery ui
Browse files Browse the repository at this point in the history
  • Loading branch information
raylight75 committed Sep 16, 2016
1 parent 52e67f4 commit e25e80a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Repositories/ProductRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ public function whereLike($search)
->paginate(6);
}

/**
* @param $search
* @return mixed
*/
public function whereAuto($search)
{
return $this->model->where('name', 'like', '%' . $search . '%')
Expand Down

0 comments on commit e25e80a

Please sign in to comment.