Home Laravel Solved : Php Artisan Serve Not Working

Solved : Php Artisan Serve Not Working

by therichpost
6 comments
Laravel 7.2 routing with route group auth guard check with prefix

Hello to all, welcome to therichpost.com. In this post, I am sharing how to solve Php Artisan Serve Not Working Problem?

php artisan serve not working

 

1. Here is the new command, you need to run:
php artisan serve

      to 

php -S localhost:8000 -t public/

 If have any query related this post, then please do comment below or ask questions.

You may also like

6 comments

mega888 September 16, 2018 - 1:28 pm

Hello every one, here every person is sharing these kinds of familiarity, so it’s pleasant to read
this web site, and I used to visit this weblog all the time.

Reply
Ajay Malhotra September 16, 2018 - 4:29 pm

Thank you mega

Reply
Mina William April 24, 2020 - 12:29 pm

i really want to know the difference between the two commands :
php artisan serve
and
php -S localhost:8000 -t public/

when i try the normal php artisan serve the page keeps on loading forever
but when i try the other command my project launches perfectly
tried to google but everybody says to use the second command but no one explains why or what is the problem may be ?!!!!
can you please provide an answer ?

Reply
Ajay Malhotra April 24, 2020 - 12:34 pm

because some time port is busy or took time to come in command and if we write port(8000) then it cleary know the number and hit to single point only.

Reply
patrick57 April 27, 2021 - 10:12 am

Could not open input file: artisan

Reply
Ajay Malhotra April 27, 2021 - 10:16 am

Are you running artisan command in correct folder?

Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.