Swaz's avatar
Level 20

How to use Laravel Vite?

https://laravel-vite.netlify.app/guide/

Just playing around with this, here are the steps I'm taking:

  1. laravel new test-project
  2. cd test-project
  3. npx apply laravel:vite
  4. composer install
  5. yarn
  6. yarn dev
  7. Visit "test-project.test"

I'm using Valet. All I see is a blank screen with "vite" written in the top left corner.

Anyone know what I'm doing wrong?

0 likes
6 replies
Swaz's avatar
Level 20

Thanks for the reply. Can you explain more? I'm not sure what you mean.

shaungbhone's avatar
  1. Create client vite folder and install vite.
  2. Create laravel folder and install laravel.

@swaz

Swaz's avatar
Level 20

Hmm. The docs say to run npx apply laravel:vite in the root of your project.

Please or to participate in this conversation.