Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vue not installing in Laravel

Tags:

laravel

vue.js

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?

like image 214
Liondalan Avatar asked Jan 25 '23 18:01

Liondalan


1 Answers

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
like image 174
Rashed Hasan Avatar answered Jan 29 '23 02:01

Rashed Hasan