From bbe488a4ef65eea005a3215be63f5f22f644d5d1 Mon Sep 17 00:00:00 2001 From: Pushpak Chhajed Date: Thu, 6 Nov 2025 18:22:56 +0530 Subject: [PATCH] update wayfinder guidelines Signed-off-by: Pushpak Chhajed --- .ai/wayfinder/core.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ai/wayfinder/core.blade.php b/.ai/wayfinder/core.blade.php index da8c4292..d85cd9f0 100644 --- a/.ai/wayfinder/core.blade.php +++ b/.ai/wayfinder/core.blade.php @@ -9,7 +9,7 @@ - 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 `wayfinder:generate` after route changes if Vite plugin isn't installed +- Run `php artisan 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 — `
` → `action="/posts" method="post"` @@ -65,7 +65,7 @@ @endif @else If your application uses the `useForm` component from Inertia, you can directly submit to the wayfinder generated functions. - + import { store } from "@/actions/App/Http/Controllers/ExampleController";