[Vuejs]-Cleaner way to install and use Vue.js in Laravel without Starter kit (laravel/ui, breeze, jetstream)?

0👍

On a fresh laravel install, just go with

npm install vue@next

Then you can refer to the docs to manually authenticate users

You will just have to setup a blade template with a wrapper let’s id it #app, and then in a js file

import { createApp } from 'vue'
const app = createApp({

})   
app.mount("#app")  

You will have to setup your Vite or Webpack to compile your javascript assets.

Leave a comment