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