Ejemplo n.º 1
0
    Caddy::stop();
    info('Valet services have been stopped.');
})->descriptions('Stop the Valet services');
/**
 * Uninstall Valet entirely.
 */
$app->command('uninstall', function () {
    Caddy::uninstall();
    info('Valet has been uninstalled.');
})->descriptions('Uninstall the Valet services');
/**
 * Determine if this is the latest release of Valet.
 */
$app->command('on-latest-version', function () use($version) {
    if (Valet::onLatestVersion($version)) {
        output('YES');
    } else {
        output('NO');
    }
})->descriptions('Determine if this is the latest version of Valet');
/**
 * Load all of the Valet extensions.
 */
foreach (Valet::extensions() as $extension) {
    include $extension;
}
/**
 * Run the application.
 */
$app->run();