leokhoa / laragon

Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.
https://laragon.org
4.37k stars 365 forks source link

Laragon with Laravel ^9.19.0 are not render tailwind CSS and JavaScript #316

Open msulaimanmisri opened 2 years ago

msulaimanmisri commented 2 years ago

When I updated my Laravel version from Laravel Mix to Vite, I noticed that laragon pretty URLs are not working anymore. I can access the page, however, all the CSS and JavaScript are not rendered.

But if I run php artisan serve, everything is fine. Unless I can't access using Laragon Pretty URL. And that's not what I wanted.

Do you know how to solve this @leokhoa ?

PhoenixIV commented 2 years ago

Whatever runs in your www project folder (in your case: Laravel) is not supposed to influence the workings of your pretty url.

I understand when you open yourproject.test in your browser you see your website, but your assets (js, css) do not load, correct?

What steps did you take to update Laravel in your project(s)?

Did you inspect your source code in the browser to make sure your assets actually point to "your-assets/your-style.css" or "yourproject.test/your-assets/your-style.css"?

Did you try to access your assets trough your browser directly? (open "yourproject.test/your-assets/your-style.css")

Sorry if these questions are very simple/obvious to you. I try to get a general understanding.