How to Install Vue js in Laravel 8 Tutorial

By using composer

$ composer create-project --prefer-dist laravel/laravel blog

Installation of vue NPM Package

$ npm install vue
"dependencies": {
"vue": "^2.6.12"
}

Run NPM Installer

$ npm install

Update ‘webpack’ Mix File

//...mix.js('resources/js/app.js', 'public/js').vue()
.postCss('resources/css/app.css', 'public/css', [
//
]);
mix.js('resources/js/app.js', 'public/js').vue()
.postCss('resources/css/app.css', 'public/css', [
//
]);

--

--

--

Online Web Tutor is web development community found by Sanjay Kumar. It provides web development course for free worldwide by professionally trained instructors

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Use Node.js to Scrape and Send Twilio Notifications

Angular + D3js. Inheritance for reducing boilerplate creating charts

Getting started-REST Api with Node.js

A Crime in React Nativeland —The Villain Among Us

Coding a To-do List App in Vanilla JavaScript and Webpack.

Subtraction JavaScript

Cypress Trade-off — Opening multiple tabs.

Automate Testing of Amplitude Analytics Events with Cypress 🌲

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Online Web Tutor

Online Web Tutor

Online Web Tutor is web development community found by Sanjay Kumar. It provides web development course for free worldwide by professionally trained instructors

More from Medium

How To Register Custom Validation Rule in Laravel 8

Build Web App Mini Sosmed with Laravel 8 [Part 5][End]

What’s new in Laravel 8

Laravel Livewire | Datatables Example Tutorial