Install Vue 3 on Laravel 9 with Vite - Laravel VueJS Tutorial
In this post, we will learn how to install Vue js 3 in laravel 9.19 with vite. This post shows you how to install vue 3 in laravel 9 with the latest upgrades. If you want to see an example of installing vue 3 in laravel-vite then you are in the right place. Laravel 9.19 with vite is the latest version of the laravel framework at the writing of this article. As you know Laravel is the most popular PHP framework and it’s easy to use scale, and flexible. Vue js is a progressive framework for building user interfaces and it is lightweight and easy to use and learn. Vue 3 is the latest version of the Vuejs Framework and growing rapidly.
Use the following steps to install Vue 3 in the laravel 9 application.
Step 1 – Install laravel 9 App
Step 2 – Install NPM Dependencies
Step 3 – Install Vue 3
Step 4 – Change vite.config.js
Step 5 – Compile the Vue assets
Step 6 – Create Vue 3 App
Step 7 – Create a Vue 3 Component
Step 8 – Connect our Vue 3 Component with Laravel blade file
Step 9 – Make a route
Step 10 – Update .env file
Step 11 –Run laravel project
Step 1 – Install Laravel 9 new project
First you have to install a laravel 9 project , we can create project by simply running this command