mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
Add link to upgrade instructions in outdated error
Previously when checking if the Valet version in use was the latest, you'd have to go to Valet repo on GitHub, find out that all the docs were on laravel.com, go there, find the upgrade instructions, and then upgrade. This can be simplified by giving the user the option to view the link.
This commit is contained in:
@@ -262,9 +262,10 @@
|
|||||||
*/
|
*/
|
||||||
$app->command('on-latest-version', function () use ($version) {
|
$app->command('on-latest-version', function () use ($version) {
|
||||||
if (Valet::onLatestVersion($version)) {
|
if (Valet::onLatestVersion($version)) {
|
||||||
output('YES');
|
output('Yes');
|
||||||
} else {
|
} else {
|
||||||
output('NO');
|
output(sprintf('Your version of Valet (%s) is not the latest version available.', $version));
|
||||||
|
output('Upgrade instructions can be found in the docs: https://laravel.com/docs/valet#upgrading');
|
||||||
}
|
}
|
||||||
})->descriptions('Determine if this is the latest version of Valet');
|
})->descriptions('Determine if this is the latest version of Valet');
|
||||||
|
|
||||||
@@ -288,7 +289,7 @@
|
|||||||
|
|
||||||
Nginx::restart();
|
Nginx::restart();
|
||||||
info(sprintf('Valet is now using %s.', $newVersion));
|
info(sprintf('Valet is now using %s.', $newVersion));
|
||||||
})->descriptions('Change the version of php used by valet', [
|
})->descriptions('Change the version of PHP used by valet', [
|
||||||
'phpVersion' => 'The PHP version you want to use, e.g php@7.2',
|
'phpVersion' => 'The PHP version you want to use, e.g php@7.2',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user