A bit of Alchemy: How we use Vite at Laravel
summary
Laravel demonstrates a Vite plugin called Wayfinder Vite plugin that statically analyzes a Laravel app, watches a subset of files, and regenerates TypeScript artifacts on change. It generates TypeScript imports for routes, model types, PHP enums, validation shapes, websocket events and env vars, turns server route objects into method+URL callables, and intentionally breaks the bundle when types diverge. The package is usable without Inertia, targets end-to-end type safety, and enters beta next month.
AI-written summary · about
chapters (6)
- 0:00Introduction to Laravel
- 1:30Understanding Inertia
- 4:32Introducing Wayfinder
- 6:52Wayfinder in action
- 14:30Type-safe integrations
- 17:04Conclusion and setup








