In the laravel tutorial, you can install vue in laravel using mix. Mix in laravel will be used for vue.
Syntax:
composer require laravel/ui
php artisan ui vue
Remove vite dependencies from package.json
then again install node modules (npm i)
in script add watch,dev and prod
create webpack.js - check extension supported is js or cjs
Documentation:
https://laravel.com/docs/10.x/mix
#php #laravel #javascript #vue #knowledgethrusters