mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
link on every install
This commit is contained in:
@@ -199,15 +199,20 @@ function copyAsUser($from, $to)
|
||||
*
|
||||
* @param string $target
|
||||
* @param string $link
|
||||
* @param string|null $owner
|
||||
* @return void
|
||||
*/
|
||||
function symlink($target, $link)
|
||||
function symlink($target, $link, $owner = null)
|
||||
{
|
||||
if ($this->exists($link)) {
|
||||
$this->unlink($link);
|
||||
}
|
||||
|
||||
symlink($target, $link);
|
||||
|
||||
if ($owner) {
|
||||
$this->chown($link, $owner);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user