Example #1
0
 /**
  * Returns list of restaurant names for use in auto-complete
  * route: /restaurants/name_search/{search_key}
  *
  * @param $search_key
  * @return Response
  */
 public function restaurantsAutoCompleteAction($search_key)
 {
     $json_return[KeyParser::data] = Restaurants::getRestaurantNames($search_key);
     return response()->json($json_return);
 }