Beispiel #1
0
 public function searchResult(Request $request)
 {
     $posts = \Model\Post\ModelName::search($request->input('search'))->get();
     $pages = \Model\Page\ModelName::search($request->input('search'))->get();
     $searchKey = $request->input('search');
     $categories = \Model\Category\ModelName::all();
     $backgroundMain = \Model\Background\ModelName::where('published', '=', true)->first();
     return view('Front::result', ['posts' => $posts, 'pages' => $pages, 'searchKey' => $searchKey, 'categories' => $categories, 'backgroundMain' => $backgroundMain]);
 }
Beispiel #2
0
 public function searchResult(Request $request)
 {
     $posts = \Model\Post\ModelName::search($request->input('search'))->get();
     $pages = \Model\Page\ModelName::search($request->input('search'))->get();
     $searchKey = $request->input('search');
     $categories = \Model\Category\ModelName::where('general', '=', '1')->get();
     $backgroundMain = \Model\Background\ModelName::where('published', '=', true)->first();
     return view('Front::result', ['posts' => $posts, 'pages' => $pages, 'searchKey' => $searchKey, 'categories' => $categories, 'backgroundMain' => $backgroundMain, 'positionTop' => $this->positionTop, 'positionRight' => $this->positionRight, 'positionCenter' => $this->positionCenter, 'positionBottom' => $this->positionBottom, 'positionLeft' => $this->positionLeft]);
 }
Beispiel #3
0
 public function searchResult(Request $request)
 {
     $posts = \Model\Post\ModelName::search($request->input('search'))->get();
     $pages = \Model\Page\ModelName::search($request->input('search'))->get();
     return view('Front::result', ['posts' => $posts, 'pages' => $pages]);
 }