[Vuejs]-Vue.js and Laravel – how do we integrate the vuejs project with laravel 5*?

0👍

The easy way for build Vue in Laravel

after you download your Laravel project, you open your terminal and type

npm install

Vue auto installed in your Laravel project

app/resources/assets/js/app.js

You need to change your Laravel route in web.php

Route::any('{all}', function(){
    return view('app');
})->where('all', '.*');

After you change your Laravel router, you can use Vue router for instead Laravel router.

Everything work for me.

Leave a comment