Skip to content

Commit 60bfcb8

Browse files
authored
Changes APP_URL to be replaced with name to lower (#239)
Although domain names are case-insensitive, browsers rewrite domains to all lowercase. This PR aims to match this behaviour.
1 parent b163931 commit 60bfcb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
108108
if ($name !== '.') {
109109
$this->replaceInFile(
110110
'APP_URL=http://localhost',
111-
'APP_URL=http://'.$name.'.test',
111+
'APP_URL=http://'.strtolower($name).'.test',
112112
$directory.'/.env'
113113
);
114114

0 commit comments

Comments
 (0)