示例#1
0
 public function searchCourses()
 {
     $searchTerm = Input::get('search-term');
     $searchResults = Course::search($searchTerm)->get();
     return view('search.showCourses', compact('searchResults', 'searchTerm'));
 }