Exemplo n.º 1
0
 /**
  * 列出课程信息
  * @author FuRongxin
  * @date    2016-02-04
  * @version 2.0
  * @return  JSON 课程信息列表
  */
 public function listing()
 {
     $courses = Course::whereZt(config('constants.status.enable'))->orderBy('kch', 'asc')->select('kch', 'kcmc', 'kcywmc', 'xf', 'xs', 'jc');
     return Datatables::of($courses)->make(true);
 }