Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davy_yg's avatar
Level 27

php artisan serve

Hello,

I would like to know why after typing php artisan serve the web browser is not popping up?

C:\xampp\htdocs\website_ids2>php artisan serve Laravel development server started: http://127.0.0.1:8000

0 likes
5 replies
davy_yg's avatar
Level 27

I type it manual in the browser then it keeps loading and loading.

I wonder why?

vajid's avatar

php artisan serve only starts development server by default. You have to start browser by your own or start a script that will start php artisan serve and later start browser

or you can add

Illuminate\Foundation\Console\ServeCommand.php

$this->info("Laravel development started on http://{$host}:{$port}/");
exec('google-chrome http://localhost:8000');
munazzil's avatar

You can use php artisan up also but browser you should start manually(before serve you can use start chrome) like that.

Please or to participate in this conversation.