#Laravel & VueJS

5 messages · Page 1 of 1 (latest)

grim portal
#

I am trying to setup a project with laravel and vue js. I followed some guide online and I am using vite. I don't really understand how it works but I am pretty sure I've got it setup now. When I run npm run dev I get laravel hosted on localhost. When I go to this adress it does not work. What am I missing?

#

It does work when I also run php artisan serve in a different window

#

But shouldn't it work without it ?

errant pond
#

Run both at the same time, my understanding is that npm run dev is essentially using Vite to host resources like your app.css

I noticed this when loading my application via php artisan serve but none of my Tailwind classes were being applied. Npm run also allows hot reloading

grim portal
#

Alright thnx