How to Install Vue JS in Laravel 8 ?

Share Me
  • 1

Hello Vue lovers
Welcome back again. Today, our main topic is install vue js in laravel 8.Now i will look at a good and simple example of laravel 8 vue auth application. In this post I will give you a very simple example of how to add vue js in our laravel 8 application. You can easily understand this concept how to install vue js in any laravel 8 application. You will do this by following things for install vue js in laravel 8 application.

In of case if you are a beginner with laravel 8 .That time  i am sure i can help you to install vue in laravel 8. It’s very simple and short way to install by using laravel ui composer package.

Laravel ui provide a good way to install bootstrap, vue and also react setup. They also provide us auth scaffold for login and register in our application. laravel 8 provide a very easy way to work with bootstrap, vue and react.

Read Also : Laravel 6 CRUD Operation

Also if you want to install vue in your laravel 8 project then install following laravel ui composer package to get by bellow command:

composer require laravel/ui

After the successfully install above package then we are fully ready to install vue with our laravel 8 application.

We can install it by two ways, one is a simple vue setup install and another one is install vue with auth. So let’s we see both of ways in this post.

Install Vue

php artisan ui vue

Install Vue with auth

php artisan ui vue --auth

Read Also :PHP AngularJS CRUD with Search and Pagination Example From Scratch

So now we installed vue, then you can see your resource directory js folder. it will be like as bellow path:


Now you also need to install npm and need to run it. So let’s run both command:

Install NPM

npm install

Read Also : Vue JS Get Array Length Or Object Length


npm run dev

Now ready your application. So you can work with your vue app.

I hope it will help you…

About code chef

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by code chef →