itiden / laravel-polywarp
dev-main
2025-04-29 14:35 UTC
Requires
- laravel/framework: ^12.10
Requires (Dev)
- carthage-software/mago: ^0.23.0
- orchestra/testbench: ^10.2
- pestphp/pest: ^3.8
This package is not auto-updated.
Last update: 2025-04-30 12:54:44 UTC
README
Keep your translations in sync between your laravel backend and frontend.
Fully typed.
Installation
composer require itiden/laravel-polywarp
then install the vite run plugin
npm install --save-dev vite-plugin-run
And then finally specify the plugin in your vite config:
import { run } from "vite-plugin-run"; export default defineConfig({ plugins: [ // ... run({ name: "polywarp", command: ["php", "artisan", "polywarp:generate"], pattern: ["resources/lang/**/*.php", "resources/js/**/*.ts"], }), ], });