4

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?

5
  • which laravel version you are using? Commented Sep 29, 2019 at 14:05
  • I'm using Laravel version 6.0.4 Commented Sep 29, 2019 at 14:09
  • did you used composer require laravel/ui --dev ? Commented Sep 29, 2019 at 14:10
  • No I didn't, why? Commented Sep 29, 2019 at 14:11
  • I am answering with the steps please follow and then let me know if it works or give error. Commented Sep 29, 2019 at 14:13

2 Answers 2

8

Please run these commands in your terminal-

  1. composer require laravel/ui --dev
  2. php artisan ui vue
  3. php artisan ui vue --auth
  4. npm install
  5. npm run dev
  6. php artisan serve
Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.