@php /** @var \Laravel\Boost\Install\GuidelineAssist $assist */ @endphp ## Laravel Wayfinder 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 use `search-docs` to check wayfinder correct usage before implementing any features. - Always Prefer named imports for tree-shaking (e.g., `import { show } from '@/actions/...'`) - Avoid default controller imports (prevents tree-shaking) - Run `{{ $assist->artisanCommand('wayfinder:generate') }}` after route changes if Vite plugin isn't installed ### Feature Overview - Form Support: Use `.form()` with `--with-form` flag for HTML form attributes — `
@endboostsnippet @endif @if($assist->roster->uses(\Laravel\Roster\Enums\Packages::INERTIA_VUE)) @boostsnippet("Wayfinder Form Component (Vue)", "vue") @endboostsnippet @endif @if($assist->roster->uses(\Laravel\Roster\Enums\Packages::INERTIA_SVELTE)) @boostsnippet("Wayfinder Form Component (Svelte)", "svelte") @endboostsnippet @endif @else If your application uses the `useForm` component from Inertia, you can directly submit to the wayfinder generated functions.