Reputation: 67
When I install Vue.js with Laravel framework, it doesn't create asset folder nor does it change app.js file inside asset folder. I used Npm install
and then npm run watch
, but when I navigate my self to the resource folder, it stays the same and I can locate Vue in package.json file. Why?
Upvotes: 4
Views: 2361
Reputation: 1
use these commands
1:composer require laravel/ui --dev
2:php artisan ui vue
3:php artisan ui vue --auth
4:npm install
5:npm run dev
php artisan serve
Note: you can use Either 2 or 3.
Upvotes: 0
Reputation: 3751
Please run these commands in your terminal-
composer require laravel/ui --dev
php artisan ui vue
php artisan ui vue --auth
npm install
npm run dev
php artisan serve
Upvotes: 8