You better divide client vite and laravel api.
Aug 27, 2021
6
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:
-
laravel new test-project -
cd test-project -
npx apply laravel:vite -
composer install -
yarn -
yarn dev - 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?
Level 20
Seems to be a bug with the laravel-vite package.
I replaced @vite with {{ vite_tags() }} in app.blade.php and it works.
Please or to participate in this conversation.