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

Merge pull request #1428 from mcaskill/improve-link-subcommands

Fix link command's `--isolate` argument with custom name
This commit is contained in:
Matt Stauffer
2023-09-25 12:55:01 -04:00
committed by GitHub
3 changed files with 72 additions and 4 deletions

View File

@@ -197,12 +197,12 @@ function (ConsoleCommandEvent $event) {
info('A ['.$name.'] symbolic link has been created in ['.$linkPath.'].');
if ($secure) {
$this->runCommand('secure');
$this->runCommand('secure '.$name);
}
if ($isolate) {
if (Site::phpRcVersion($name)) {
$this->runCommand('isolate');
if (Site::phpRcVersion($name, getcwd())) {
$this->runCommand('isolate --site='.$name);
} else {
warning('Valet could not determine which PHP version to use for this site.');
}