summaryrefslogtreecommitdiff
path: root/site/app
diff options
context:
space:
mode:
authorhorus2019-04-16 16:32:22 +0200
committerhorus2019-04-16 16:32:22 +0200
commitd7d567ce314e4ff6738eb2f82f8070fc68851d66 (patch)
tree36c14f5cd850887a44d8e9bf37932b358bd06ab1 /site/app
parent1258a911bc004ce35cf07a5dcbd467badc76112a (diff)
downloadalkobote-d7d567ce314e4ff6738eb2f82f8070fc68851d66.tar.gz
Add search for shop. (site)
Diffstat (limited to 'site/app')
-rw-r--r--site/app/Http/Controllers/SearchController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/app/Http/Controllers/SearchController.php b/site/app/Http/Controllers/SearchController.php
index a0ea2fc..1a2ca03 100644
--- a/site/app/Http/Controllers/SearchController.php
+++ b/site/app/Http/Controllers/SearchController.php
@@ -56,7 +56,7 @@ class SearchController extends Controller {
$query = Input::get("q");
$q = "%" . Utility::escapeLike($query) . "%";
- $data = DB::table('all_view')->whereNotNull('url')->where('name', 'like', $q)->orWhere('spirit_type', 'like', $q)->orderBy($sort_by, $order_by)->simplePaginate(20);
+ $data = DB::table('all_view')->whereNotNull('url')->where('name', 'like', $q)->orWhere('spirit_type', 'like', $q)->orWhere('shop', 'like', $q)->orderBy($sort_by, $order_by)->simplePaginate(20);
#$data = DB::table('whisky_view')->orderBy('procent', 'DESC')->limit(100)->simplePaginate(20);
#var_dump($data); exit;