/**
  * search in Flickr API for a specific set of keywords
  *
  * @param SearchRequest $request
  * @param int $id
  * @return mixed
  */
 public function search(SearchRequest $request, $id = 1)
 {
     $photoSearch = $request->all();
     $query = $photoSearch['photoSearch'];
     $data = $this->flickrRepository->search($query, $id);
     return Redirect::route('search.page', [$query, $id])->with($data);
 }
 public function search(SearchRequest $request)
 {
     //dd($request->search);
     $categories = Auth::user()->categories()->get();
     $dishes = Auth::user()->dishes()->where('category_id', '=', $request->all())->get();
     //dd($dishes);
     return view('dishes.all')->with(['dishes' => $dishes, 'categories' => $categories]);
 }
 public function search(SearchRequest $request)
 {
     $items = Item::search($request->get('term'))->get()->take(200);
     $list = [];
     foreach ($items as $item) {
         $list[] = ['file' => $item->title, 'path' => $item->path, 'id' => $item->id];
     }
     return response()->json(['files' => $list, 'count' => count($list)]);
 }
 /**
  * Search players. If direct match, send to player page. If not, return all results to search results view.
  *
  * @param SearchRequest|Request $request
  * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector|\Illuminate\View\View
  */
 public function playerSearch(SearchRequest $request)
 {
     $player = Player::where('name', $request->input('searchTerm'))->first();
     if ($player) {
         return redirect(route('view-player', array('id' => $player->accountID)));
     }
     $results = Player::where('name', 'LIKE', '%' . $request->input('searchTerm') . '%')->paginate(15);
     return view('search.results', compact('results'));
 }
Esempio n. 5
0
 /**
  * Find search in blog
  *
  * @param  App\Http\Requests\SearchRequest $request
  * @return Response
  */
 public function search(SearchRequest $request)
 {
     $search = $request->input('search');
     $posts = $this->blog_gestion->search($this->nbrPages, $search);
     $links = $posts->setPath('')->appends(compact('search'))->render();
     $info = trans('front/blog.info-search') . '<strong>' . $search . '</strong>';
     $tasks = $this->tasklist_gestion->where('headline', '=', '%$search%')->get();
     $tasks = $this->tasklist_gestion->where('tasklist.headline', 'LIKE', "%{$search}%")->orWhere('tasklist.info', 'LIKE', "%{$search}%")->get();
     return view('back.search.index', compact('posts', 'links', 'info', 'tasks'));
 }
Esempio n. 6
0
 /**
  * Find search in blog
  *
  * @param  App\Http\Requests\SearchRequest $request
  * @return Response
  */
 public function search(SearchRequest $request)
 {
     $search = $request->input('search');
     $posts = $this->blog_gestion->search($this->nbrPages, $search);
     $links = view('pagination.default', ['paginator' => $posts]);
     $info = trans('front/blog.info-search') . '<strong>' . $search . '</strong>';
     return view('front.blog.index', compact('posts', 'links', 'info'));
 }
Esempio n. 7
0
 /**
  * Find search in blog
  *
  * @param  App\Http\Requests\SearchRequest $request
  * @return Response
  */
 public function search(SearchRequest $request)
 {
     $search = $request->input('search');
     $posts = $this->blog_gestion->search($this->nbrPages, $search);
     $links = $posts->setPath('')->appends(compact('search'))->render();
     $info = trans('front/blog.info-search') . '<strong>' . $search . '</strong>';
     return view('front.blog.index', compact('posts', 'links', 'info'));
 }
 public function search(SearchRequest $request)
 {
     $tag = $string = preg_replace('/\\s+/', '', $request->input('tag'));
     $media = $this->instagramService->getRecentMediaByTag($tag);
     return view('search')->with('mediaList', $media->get('data'));
 }
Esempio n. 9
0
 /**
  * Find search in blog
  *
  * @param  App\Http\Requests\SearchRequest $request
  * @return Response
  */
 public function search(SearchRequest $request)
 {
     $search = $request->input('search');
     $posts = $this->blog_control->search($this->nbrPages, $search);
     $links = $posts->appends(compact('search'))->render();
     $info = $search;
     return view('astro.articles', compact('posts', 'links', 'info'));
 }
Esempio n. 10
0
 /**
  * Find search in pet foods
  *
  * @param  App\Http\Requests\SearchRequest $request
  * @return Response
  */
 public function search(SearchRequest $request)
 {
     $additives = $this->food_gestion->index();
     $search = $request->input('search');
     $foods = $this->food_gestion->search($this->nbrPages, $search);
     $info = trans('front/blog.info-search') . '<strong>' . $search . '</strong>';
     //  dd($foods);
     $links = $foods->setPath('')->render();
     return view('front.food.index', compact('foods', 'additives', 'links'));
 }
 public function search(SearchRequest $request)
 {
     $search_term = $request->get('search');
     return redirect()->route('search', $search_term);
 }
 public function search(Requests\SearchRequest $request)
 {
     $selRep = session('result');
     $searchData = $request->all();
     $regions = \App\Region::all();
     $nothing = \App\Myclasses\Response::requestResult('nothing');
     if ($searchData) {
         $searching = new \App\Myclasses\search\SearchEngine($searchData);
         $systemDs = $searching->getResult();
         if ($systemDs) {
             return view($this->localeDir . 'administration.search', compact('regions', 'systemDs', 'searchData', 'selRep'));
         } else {
             return view($this->localeDir . 'administration.search', compact('regions', 'nothing', 'searchData'));
         }
     }
     return view($this->localeDir . 'administration.search', compact('regions', 'selRep'));
 }
 /**
  * return search list
  *
  * @param SearchRequest $request
  * @param Collaborator $collaborator
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function search(SearchRequest $request, Collaborator $collaborator)
 {
     $model = $collaborator->search($request->get('column'), $request->get('value'))->get();
     return view('collaborator.blocks.filter', ['model' => $model]);
 }
Esempio n. 14
0
 /**
  * Search user simple
  *
  * @return Response
  */
 public function user(SearchRequest $request)
 {
     $users = $this->user->searchSimple($request->all());
     $adresses = $this->adresse->searchSimple($request->all());
     return view('backend.results')->with(['users' => $users, 'adresses' => $adresses]);
 }