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

Cronix's avatar
Cronix
Best Answer
Level 67

Im using laravel built-in local server

php artisan serve (if that's what you're meaning) uses php's built-in webserver, which is extremely basic and very limited. It doesn't use apache (or include apache). That might actually be the problem. I'd suggest using a real web server, like apache or (better) nginx. Since you're using xampp, I'd set up a virtual host with apache.

OmEr1112's avatar

thank you so much @Cronix that was exactly the issue. I'm using xampp and now it's working fine. built in server sucks.. thanks again mate.

Cronix's avatar

You're welcome. If the issue is resolved, please mark the thread as solved.

Cronix's avatar

Along the left, under the persons avatar for each post, there is a thumbs up icon (for liking a post) and a checkbox icon(for marking that post as the solution).

Previous

Please or to participate in this conversation.