Support the ongoing development of Laravel.io →
posted 4 years ago
Last updated 1 year ago.
0

I've found a solution - or at least a workaround - for my problem by searching at Stackoverflow. [https://stackoverflow.com/questions/49741975/php-artisan-serve...](Here's the link.) The following command approach solved my problem, at least for the moment: php -S localhost:8000 -t public/

Based on the rest of the thread, I'm not sure this is going to keep working. Frankly, I don't really understand either the nature of the problem or why there doesn't seem to be a reliable solution. If someone could explain that, I would be grateful. This seems awfully fundamental as functionality goes and I'm surprised the problem seems to lack a solution that just keeps working consistently.

0

php artisan serve should be almost equivalent to php -S localhost:8000 server.php, so I guess you can try that and see what happens.

By the way, I just googled this problem and it looks like it occurs on a variety of setups, including Linux and probably Macs. As far as I understand, no one knows why, and it's extremely rare.

0

I'm glad to hear it is very rare. It was disappointing to get to the point in the course where I was going to look at the code in a browser for the very first time and then it refused to display! That hurt my momentum with the course. It would be much more aggravating to have every workaround you tried only work briefly and to have people run out of ideas for what you could possibly do to get past the problem.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.