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

aleksandr1104nk's avatar

After installing laravel jetstream and inertia, I started getting a blank page.

I create my project on OS Windows 10. After installing laravel jetstream and inertia, I started getting a blank page. I use XAMPP server and if I try to go along the route "localhost/myproject/public/" it return blank page. However if I run a command: php artisan serve and go to "/127.0.0.1:8000/" then everything works great in this case. What does all this mean. I want to make a project through XAMPP but not through built-in laravel server. Besides, after everything, I will need to deploy it on a remote server, and as I understand it, this will not work either.

0 likes
1 reply
jlrdw's avatar

localhost/myproject/public/

Is incorrect. You need to either:

  • point to public as the document root in your virtual host.

  • Or another technique is place main laravel out of web altogether, but this is more advanced, so start with the first suggestion.

Then public will be removed from url. I use both nginx and apache, there are many articles on virtual host setup in apache.

Please or to participate in this conversation.