Vikram Anand Bhushan
Vikram Anand Bhushan

Reputation: 4896

php artisan serve making my cmd prompt stuck

I am using Laravel 5 on windows cmd prompt.

I have very simple issue
php artisan serve

to start the server , My command prompt is stuck and I am not able to execute any other artisan command until I close the command line and then restart it and then execute the code and then start the laravel server.

Is there any easy way?

Upvotes: 4

Views: 7999

Answers (2)

Sameh Khalifa
Sameh Khalifa

Reputation: 9

Press Ctrl+C It will kill this and start a new command line

Upvotes: 0

Marco Pallante
Marco Pallante

Reputation: 4043

Use a second cmd prompt.

Or use a terminal emulator which supports multiple tabs. I don't know if Windows cmd supports the send to background execution command, like the & of the Unix sh.

If it is available, you should be able to run the serve in background and have your prompt ready for other commands. Under sh I would do

$ php artisan serve &

but I usually don't send to background so that I can kill it easily.

I would definitely go for two terminals.

Upvotes: 5

Related Questions