How to install VueJS, Vuex in Laravel 8


How to install VueJS, Vuex in Laravel 8 with its dependencies library

In this post, you will be learning how to install or Set up Vue JS, Vuex, Saas, Vue-loader and its dependencies libraries in Laravel 8.

Step 1: Install Laravel 8 as follows:

$ composer create-project --prefer-dist laravel/laravel laravelvue "8.0.*"

Step 2: Install Vue with Laravel UI Package as follows:

$ composer require laravel/ui
$ php artisan ui vue --auth

Step 3: After ui vue auth successfully installed. Let's run the command for setup node modules as follows:

$ npm install

Step 4: Let's Install Vue as follows:

$ npm install vue

Step 5: Now, Let's install all required VUE tools and libraries by a single command:

$ npm install vue-template-compiler vue-loader vue-router vuex axios vue-axios  --save-dev --legacy-peer-deps

Step 6: Run the command to build the development package by following cmd:

$ npm run dev

Step 7: You are done. Lets run the application by:

$ php artisan serve
$ npm run watch

For Clear understanding, Please Watch out the Video, given above.

Thanks for reading...

© Copyright - 2018 - 2022 | All rights reserved at Funda of Web IT