Exemplo n.º 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();
 }
Exemplo n.º 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();
 }