get(); return $result ? $result->toArray() : []; } /** * @param $where * @param $data * @return bool */ public static function updateData($where, $data) { if (empty($where) || empty($data)) { return false; } return self::where($where)->update($data); } }