What problem does it solve?
Use this skill for Laravel Wayfinder which auto-generates typed functions for Laravel controllers and routes. ALWAYS use this skill when frontend code needs to call backend routes or controller actions. Trigger when: connecting any React/Vue/Svelte/Inertia frontend to Laravel controllers, routes, building end-to-end features with both frontend and backend, wiring up forms or links to backend endpoints, fixing route-related TypeScript errors, importing from @/actions or @/routes, or running wayfinder:generate. Use Wayfinder route functions instead of hardcoded URLs. Covers: wayfinder() vite plugin, .url()/.get()/.post()/.form(), query params, route model binding, tree-shaking. Do not use for backend-only task
Core Features & Use Cases
- Auto-generates typed route helpers for common controller actions and routes
- Provides safe, tree-shaken imports for frontend calls
- Supports URL builders, HTTP method helpers, and form helpers within Wayfinder
Quick Start
Run php artisan wayfinder:generate --no-interaction to regenerate typed route helpers after route changes.