mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +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.
|
||||
*/
|
||||
$app->command('link [name]', function ($name) {
|
||||
$app->command('link [name] [--secure]', function ($name, $secure) {
|
||||
$linkPath = Site::link(getcwd(), $name = $name ?: basename(getcwd()));
|
||||
|
||||
info('A ['.$name.'] symbolic link has been created in ['.$linkPath.'].');
|
||||
|
||||
if ($secure) {
|
||||
$this->runCommand('secure '.$name);
|
||||
}
|
||||
})->descriptions('Link the current working directory to Valet');
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user