Skip to content

httpsnader0/Ziggy-Auto-Generate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Ziggy Routes Auto Generate

This Command Generate All Files In Routes Folder To Ziggy Json File And Make Auto Generate If Any Route Changed .

Installation

  • Open vite.config.js Then At The Top Of File Add
import { exec } from "node:child_process";
  • And At The End Of Plugins Add
{
    name: "ziggy",
    enforce: "post",
    handleHotUpdate({ server, file }) {
        if (file.includes("/routes/") && file.endsWith(".php")) {
            exec(
                "php artisan ziggy:generate",
                (error, stdout) =>
                    error === null &&
                    console.log(`Ziggy Routes Generated Successfully !`)
            );
        }
    },
},
  • Congratulations You Have Now Auto Generated For Routes Folder

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published