--- name: wayfinder description: How to work effectively with Laravel Wayfinder, always use when developing frontend features --- # Wayfinder ## Instructions Wayfinder generates TypeScript functions and types for Laravel controllers and routes which you can import into your client side code. It provides type safety and automatic synchronization between backend routes and frontend code. ### Development Guidelines - Always Prefer named imports for tree-shaking (e.g., `import { show } from '@/actions/...'`) - Avoid default controller imports (prevents tree-shaking) - Run `php artisan wayfinder:generate` after route changes if there are any errors ### Feature Overview - Form Support: Use `.form()` with `--with-form` flag for HTML form attributes — `