mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
secure option for link
This commit is contained in:
committed by
Adam Wathan
parent
f4c0c98542
commit
99c2f64c14
@@ -93,10 +93,14 @@
|
|||||||
/**
|
/**
|
||||||
* Register a symbolic link with Valet.
|
* Register a symbolic link with Valet.
|
||||||
*/
|
*/
|
||||||
$app->command('link [name]', function ($name) {
|
$app->command('link [name] [--secure]', function ($name, $secure) {
|
||||||
$linkPath = Site::link(getcwd(), $name = $name ?: basename(getcwd()));
|
$linkPath = Site::link(getcwd(), $name = $name ?: basename(getcwd()));
|
||||||
|
|
||||||
info('A ['.$name.'] symbolic link has been created in ['.$linkPath.'].');
|
info('A ['.$name.'] symbolic link has been created in ['.$linkPath.'].');
|
||||||
|
|
||||||
|
if ($secure) {
|
||||||
|
$this->runCommand('secure '.$name);
|
||||||
|
}
|
||||||
})->descriptions('Link the current working directory to Valet');
|
})->descriptions('Link the current working directory to Valet');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user