pushCriteria(app(RequestCriteria::class)); } public function getTaskById($id) { return $this->model->find($id); } public function getTaskByUtype($utype) { return $this->model->where(['utype'=>$utype,'status'=>1])->get(); } public function getAllPoints($utype) { return $this->model->where(['utype'=>$utype])->get(); } public function getPoint($where) { return $this->model->where($where)->value('points'); } }