*/ public static function getLatest($version, $platform) { $lastVersion = self::field('version,content,download_file,enforce')->where('platform', $platform)->order('id', 'desc')->find(); if (empty($lastVersion)) { return false; } return $lastVersion; } }