Skip to content

Commit 1f10611

Browse files
authored
update wayfinder guidelines (#343)
Signed-off-by: Pushpak Chhajed <[email protected]>
1 parent 2c4580e commit 1f10611

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ai/wayfinder/core.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- Always use `search-docs` to check wayfinder correct usage before implementing any features.
1010
- Always Prefer named imports for tree-shaking (e.g., `import { show } from '@/actions/...'`)
1111
- Avoid default controller imports (prevents tree-shaking)
12-
- Run `wayfinder:generate` after route changes if Vite plugin isn't installed
12+
- Run `php artisan wayfinder:generate` after route changes if Vite plugin isn't installed
1313

1414
### Feature Overview
1515
- Form Support: Use `.form()` with `--with-form` flag for HTML form attributes — `<form {...store.form()}>` → `action="/posts" method="post"`
@@ -65,7 +65,7 @@
6565
@endif
6666
@else
6767
If your application uses the `useForm` component from Inertia, you can directly submit to the wayfinder generated functions.
68-
68+
6969
<code-snippet name="Wayfinder useForm Example" lang="typescript">
7070
import { store } from "@/actions/App/Http/Controllers/ExampleController";
7171

0 commit comments

Comments
 (0)