Skip to content

Commit

Permalink
[5.x] Suggest php artisan serve when installed on Windows
Browse files Browse the repository at this point in the history
fixes #365

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Nov 18, 2024
1 parent c4508ea commit e4a54ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if ($this->isParked($directory)) {
$url = $this->generateAppUrl($name);
$output->writeln('<fg=gray>➜</> Open: <options=bold;href='.$url.'>'.$url.'</>');
} elseif (windows_os()) {
$output->writeln('<fg=gray>➜</> <options=bold>php artisan serve</>');
} else {
$output->writeln('<fg=gray>➜</> <options=bold>composer run dev</>');
}
Expand Down

0 comments on commit e4a54ac

Please sign in to comment.