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:
@@ -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.');
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user