Categories
Vue Answers

How to install Vue.js in Laravel 8?

Spread the love

Sometimes, we want to install Vue.js in Laravel 8.

In this articlel, we’ll look at how to install Vue.js in Laravel 8.

How to install Vue.js in Laravel 8?

To install Vue.js in Laravel 8, we need to run a few commands.

First, we run

composer require laravel/ui

to add the larevel/ui` package.

Then we add Vue.js into our project with

php artisan ui vue

If we want to add auth with our Laravel Vue project, we run

php artisan ui vue --auth

Finally, we run

npm install

to install the Vue packages.

And then we run

npm run dev

to start the Vue project.

Conclusion

To install Vue.js in Laravel 8, we need to run a few commands.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *