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.