コード例 #1
0
 public function searchAll()
 {
     $query = Request::input('q');
     if (empty($query)) {
         return Response::json(array(), 400);
     }
     $data = array_merge(Employee::search($query)->toArray(), Department::search($query)->toArray());
     return Response::json($data);
 }