Skip to content

Commit c4859aa

Browse files
committed
Update routing.mdx
1 parent fa811ba commit c4859aa

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

v2/the-basics/routing.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,15 @@ class UsersController extends Controller
3838
}
3939
```
4040

41-
However, when using Laravel, the [Ziggy](https://github.com/tighten/ziggy) library can make your named, server-side routes available to you via a global `route()` function. In fact, if you are developing an application using one of Laravel's [starter kits](https://laravel.com/docs/starter-kits), Ziggy is already configured for you.
41+
When using Laravel, you have several options to make your server-side routes available to your client-side code:
4242

43-
If you're using the Vue plugin included with Ziggy, you may use the `route()` function directly in your templates.
43+
### Wayfinder
44+
45+
When using [Wayfinder](https://github.com/laravel/wayfinder), you can pass the generated TypeScript method directly to the [Link component](/v2/the-basics/links#wayfinder), [form helpers](/v2/the-basics/forms#wayfinder), or [router methods](/v2/the-basics/manual-visits#wayfinder) and Inertia understand how to handle it. In fact, if you are developing an application using one of Laravel's [starter kits](https://laravel.com/docs/starter-kits), Wayfinder is already configured for you.
46+
47+
### Ziggy
48+
49+
The [Ziggy](https://github.com/tighten/ziggy) library can make your named, server-side routes available to you via a global `route()` function. If you're using the Vue plugin included with Ziggy, you may use the `route()` function directly in your templates.
4450

4551
```vue
4652
<Link :href="route('users.create')">Create User</Link>

0 commit comments

Comments
 (0)