Skip to content

Commit d2f7d57

Browse files
vitrtaylorotwell
authored andcommitted
fix for the empty $name issue (#94)
fix for the empty $name issue, e.g. The [] symbolic link has been removed.
1 parent 2feef6b commit d2f7d57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/valet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
* Unlink a link from the Valet links directory.
109109
*/
110110
$app->command('unlink [name]', function ($name) {
111-
Site::unlink($name ?: basename(getcwd()));
111+
Site::unlink($name = $name ?: basename(getcwd()));
112112

113113
info('The ['.$name.'] symbolic link has been removed.');
114114
})->descriptions('Remove the specified Valet link');

0 commit comments

Comments
 (0)