model->where('username', $account)->first(); } public function getUsers($where, $limit = '') { $res = $this->model->where($where); if ($limit) { $res->paginate($limit); } return $res->get(); } public function getUserInfo($where) { return $this->model->where($where)->first(); } public function updateUserInfo($data, $where) { return $this->model->where($where)->update($data); } public function createUserInfo($data) { return $this->model->create($data); } public function deleteUserInfo($where) { return $this->model->where($where)->delete(); } }