1
0
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:
Andrej Mihaliak
2017-04-11 20:15:10 +02:00
committed by Adam Wathan
parent f4c0c98542
commit 99c2f64c14

View File

@@ -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');
/**