diff --git a/.ai/wayfinder/core.blade.php b/.ai/wayfinder/core.blade.php index 73df67ee..d851cf2e 100644 --- a/.ai/wayfinder/core.blade.php +++ b/.ai/wayfinder/core.blade.php @@ -3,12 +3,4 @@ @endphp # Laravel Wayfinder -Wayfinder generates TypeScript functions for Laravel routes. Import from `@/actions/` (controllers) or `@/routes/` (named routes). - -- IMPORTANT: Activate `wayfinder-development` skill whenever referencing backend routes in frontend components. -- Invokable Controllers: `import StorePost from '@/actions/.../StorePostController'; StorePost()`. -- Parameter Binding: Detects route keys (`{post:slug}`) — `show({ slug: "my-post" })`. -- Query Merging: `show(1, { mergeQuery: { page: 2, sort: null } })` merges with current URL, `null` removes params. -@if($assist->roster->uses(\Laravel\Roster\Enums\Packages::INERTIA_LARAVEL) || $assist->roster->uses(\Laravel\Roster\Enums\Packages::INERTIA_REACT) || $assist->roster->uses(\Laravel\Roster\Enums\Packages::INERTIA_VUE) || $assist->roster->uses(\Laravel\Roster\Enums\Packages::INERTIA_SVELTE)) -- Inertia: Use `.form()` with `