1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 16:40:05 +01:00

Handle fetch-share-url on users running a free Expose plan.

This commit is contained in:
Matt Stauffer
2023-02-19 21:54:24 -05:00
parent 8784458dfe
commit 3025fd2ab1
2 changed files with 4 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ public function currentTunnelUrl(?string $domain = null): ?string
return $response;
}
return warning('The project '.$domain.' cannot be found as an Expose share.');
return warning("The project $domain cannot be found as an Expose share.\nEither it is not currently shared, or you may be on a free plan.");
} catch (ConnectException $e) {
return warning('There is no Expose instance running.');
}

View File

@@ -365,7 +365,9 @@ function (ConsoleCommandEvent $event) {
switch ($tool) {
case 'expose':
output(Expose::currentTunnelUrl($domain ?: Site::host(getcwd())));
if ($url = Expose::currentTunnelUrl($domain ?: Site::host(getcwd()))) {
output($url);
}
break;
case 'ngrok':
try {