Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exit the command stream when running php artisan serve?

Tags:

laravel

I am suing command prompt on windows. When I run php artisan serve the command prompt enters some kind of command stream where you can not use the command line anymore. How to exit this stream so that I could use the command line? Also, does this mean that exiting this mode will stop serving the app?

like image 790
funguy Avatar asked Nov 30 '22 11:11

funguy


1 Answers

php artisan serve means you create a server. as long as this server running you can view your created website in browser at http://localhost:8000 . what you said as ’some kind of command stream’ is things that server is serving. Yes exiting command prompt will terminate the php artisan serve means when you access http://localhost:8000 there will no website to be seen anymore.

You can terminate the server by Ctrl+c OR just open another cmd prompt and keep php artisan running

like image 180
fajarhac Avatar answered Mar 06 '23 05:03

fajarhac