public function doSearch() { $querySearch = trim(Input::get("search_q")); $langs = Config::get('translations::config.alt_langs'); $countShow = Input::get("count_show") ? Input::get("count_show") : Config::get('translations::config.show_count')[0]; $allPage = Trans::where('phrase', 'like', "%" . $querySearch . "%")->orderBy("id", "desc")->paginate($countShow); return View::make("translations::part.result_search", compact("allPage", "langs")); }