© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
2 replies
Hedi

auto refresh filament page when changing code?

hello, i'm using vite and filamentphp, but when i edit something, say for example adding a form component, i have to manually go back to the browser and refresh the page. is this auto refresh not supported in filament or am i doing something wrong?

here's my
vite.config.js
vite.config.js
file
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue"; //add this line
import { resolve } from "path"; // Import the resolve function from 'path'
import AutoImport from "unplugin-auto-import/vite";
import laravel, { refreshPaths } from "laravel-vite-plugin";

export default defineConfig({
    resolve: {
        alias: {
            root: resolve(__dirname, "resources"), // Use resolve() to get the correct path
        },
    },
    plugins: [
        vue(), // write this
        laravel({
            input: ["resources/css/app.css", "resources/js/app.js"],
            //refresh: true,
            refresh: [...refreshPaths, "app/Livewire/**"],
        }),
        AutoImport({
            /* options */
        }),
    ],
});
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue"; //add this line
import { resolve } from "path"; // Import the resolve function from 'path'
import AutoImport from "unplugin-auto-import/vite";
import laravel, { refreshPaths } from "laravel-vite-plugin";

export default defineConfig({
    resolve: {
        alias: {
            root: resolve(__dirname, "resources"), // Use resolve() to get the correct path
        },
    },
    plugins: [
        vue(), // write this
        laravel({
            input: ["resources/css/app.css", "resources/js/app.js"],
            //refresh: true,
            refresh: [...refreshPaths, "app/Livewire/**"],
        }),
        AutoImport({
            /* options */
        }),
    ],
});
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Make a hard page refresh when changing tenant
FilamentFFilament / ❓┊help
15mo ago
Page refresh
FilamentFFilament / ❓┊help
2y ago
Auto-refresh pages
FilamentFFilament / ❓┊help
3y ago
Dynamically loaded Widgets do not refresh when changing filters on the page
FilamentFFilament / ❓┊help
3y ago