Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aurorame's avatar

how to install vuetify on laravel 9?

can`t find any work solution to install vuetify on laravel 9

0 likes
6 replies
mumostevn's avatar

And how do we install vuetify 3 to laravel 9 breeze stater kit configured with vite?

2 likes
remicare's avatar

@mumostevn

For installing Laravel 10 with Breeze and add Vuetify :

We assume that you have already install Laravel and Laravel Breeze.

  1. Install vuetify with : npm i vuetify
  2. Add code to resources/js/app.js, it should look like this:
import './bootstrap';
import '../css/app.css';

import { createApp, h } from 'vue';
import { createInertiaApp } from '@inertiajs/vue3';
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.m';

// Vuetify
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'

const vuetify = createVuetify({
  components,
  directives,
})

const appName = window.document.getElementsByTagName('title')[0]?.innerText || 'Laravel';

createInertiaApp({
    title: (title) => `${title} - ${appName}`,
    resolve: (name) => resolvePageComponent(`./Pages/${name}.vue`, import.meta.glob('./Pages/**/*.vue')),
    setup({ el, App, props, plugin }) {
        return createApp({ render: () => h(App, props) })
            .use(plugin)
            .use(ZiggyVue, Ziggy)
            .use(vuetify)
            .mount(el);
    },
    progress: {
        color: '#4B5563',
    },
});

Enjoy!

5 likes
linusx's avatar

Where you able to figure this out?

Please or to participate in this conversation.