diff --git a/app/Handlers/Search/Content.php b/app/Handlers/Search/Content.php index 48e30681..1dd3b364 100644 --- a/app/Handlers/Search/Content.php +++ b/app/Handlers/Search/Content.php @@ -1,10 +1,9 @@ tokenize($term); return ContentModel::where('content', 'LIKE', $token) - ->orWhere('meta_description', 'LIKE', $token) - ->orWhere('meta_keywords', 'LIKE', $token) - ->orWhere('title', 'LIKE', $token) - ->orWhere('url', 'LIKE', $token) - ->get(); + ->orWhere('meta_description', 'LIKE', $token) + ->orWhere('meta_keywords', 'LIKE', $token) + ->orWhere('title', 'LIKE', $token) + ->orWhere('url', 'LIKE', $token) + ->get(); } public function getId() diff --git a/app/Handlers/Search/Search.php b/app/Handlers/Search/Search.php new file mode 100644 index 00000000..ada51c7d --- /dev/null +++ b/app/Handlers/Search/Search.php @@ -0,0 +1,26 @@ +