From d1016839d9b0785392a46ce1d9b128cd2fb7eec5 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 4 Aug 2022 20:22:29 +0100 Subject: [PATCH] Changes APP_URL to be replaced with name to lower Although domain names are case-insensitive, browsers rewrite domains to all lowercase. This PR aims to match this behaviour. --- src/NewCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 9a47e81a..e7df3492 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -108,7 +108,7 @@ protected function execute(InputInterface $input, OutputInterface $output) if ($name !== '.') { $this->replaceInFile( 'APP_URL=http://localhost', - 'APP_URL=http://'.$name.'.test', + 'APP_URL=http://'.strtolower($name).'.test', $directory.'/.env' );