public function getAuthorlist() { //needed only if you want a custom remote ajax call for a custom search return Author::where("firstname", "like", Input::get("q") . "%")->orWhere("lastname", "like", Input::get("q") . "%")->take(10)->get(); }
public function getAuthorlist() { //needed only by latest autocomplete return Author::where("firstname", "like", Input::get("q") . "%")->orWhere("lastname", "like", Input::get("q") . "%")->take(10)->get(); }