Hello Artisan
In this tutorial we will learn how to install vue js in Laravel 8. If you don't know how to install laravel 8 in vue js then this example tutorial is for you. I will show you step by step to install vue js in your Laravel 8 app.
We will use Laravel ui package to install vue js in Laravel 8 application. I will show you vue js installation process with auth or without auth in Laravel 8. So let's start our tutorial.
Step 1 : Install Ui/Package
First we need to install laravel ui package for starting with laravel 8 with vue js. So if you want to start with laravel 8 with vue then run below command to install laravel ui.
composer require laravel/ui
After successfully install this ui package then we are ready to install vue with our application.
Install Vue
php artisan ui vue
If you want laravel 8 vue --auth then run below command.
php artisan ui vue --auth
Now all are set to go. Run just below command to compile javascript asset.
npm install
//then
npm run dev
//or
npm run watch
Read also : Prevent Spam Form Submissions by Bots in PHP
Hope it can help you.
#laravel #laravel-8x #vue-js