Пример #1
0
 /**
  * * Funtion for searching through the group records.
  * @param SearchRequest $request
  * @return \Illuminate\View\View
  */
 public function search(SearchRequest $request)
 {
     $title = 'Join a new group';
     $groups = $this->groupRepository->searchedGroups($request->value);
     $tagline = 'Results(' . $groups->count() . ') for "' . $request->value . '"';
     return view('inspina.groups.search', compact('groups', 'title', 'tagline'));
 }