Instale o Vue em Laravel
$ composer require laravel/ui
Handsome Hoopoe
$ composer require laravel/ui
$ php artisan ui vue
npm i -D vue@next @vue/compiler-sfc vue-loader@next
$ php artisan ui vue --auth
Vue in laravel
//Composer command
composer require laravel/ui
// Auth with Vue
php artisan ui vue --auth
npm install
npm install vue
npm install vue-template-compiler vue-loader vue-router vuex axios vue-axios --save-dev --legacy-peer-deps
npm run dev
//Change package.json to for vue2
"vue": "^2.6.11",
"vue-loader": "^15.9.6",
"vue-template-compiler": "^2.6.12",
"laravel-mix": "^6.0.6",
//if Vue 2 change Vue rounter to "vue-router": "^3.2.0", in package.json file
npm add @vue/compiler-sfc -D
window.Vue = require('vue');
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
const app = new Vue({
el: '#app',
});