Пример #1
0
 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();
 }
Пример #2
0
 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();
 }