mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
extract logic
This commit is contained in:
@@ -220,9 +220,7 @@
|
||||
* Determine if this is the latest release of Valet.
|
||||
*/
|
||||
$app->command('on-latest-version', function () use ($version) {
|
||||
$response = Httpful\Request::get('https://api.github.com/repos/laravel/valet/releases/latest')->send();
|
||||
|
||||
if (version_compare($version, trim($response->body->tag_name, 'v'), '>=')) {
|
||||
if (Valet::onLatestVersion($version)) {
|
||||
output('YES');
|
||||
} else {
|
||||
output('NO');
|
||||
|
||||
Reference in New Issue
Block a user