From e4a54acf08a2784400d86e415b27e723b040ec75 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 18 Nov 2024 09:14:10 +0800 Subject: [PATCH] [5.x] Suggest `php artisan serve` when installed on Windows fixes #365 Signed-off-by: Mior Muhammad Zaki --- src/NewCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NewCommand.php b/src/NewCommand.php index df7ebbe..5c8428d 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -248,6 +248,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int if ($this->isParked($directory)) { $url = $this->generateAppUrl($name); $output->writeln('➜ Open: '.$url.''); + } elseif (windows_os()) { + $output->writeln('php artisan serve'); } else { $output->writeln('composer run dev'); }