---
title: "Laravel Wayfinder: End-to-End Type Safety for PHP and TypeScript"
url: https://daily.dev/posts/laravel-wayfinder-end-to-end-type-safety-for-php-and-typescript-rcdxam3w8
source_url: https://laravel.com/blog/laravel-wayfinder-end-to-end-type-safety-for-php-and-typescript
type: article
source: "Laravel"
published: 2026-01-15T17:53:55.888Z
updated: 2026-01-15T17:54:16.093Z
tags: ["typescript", "php", "laravel"]
reading_time: 8
upvotes: 50
comments: 4
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel Wayfinder: End-to-End Type Safety for PHP and TypeScript

**[Laravel](https://daily.dev/sources/laravel)** · 8 min read · 50 upvotes · 4 comments

## Summary

Laravel Wayfinder is a new open-source tool that automatically generates TypeScript types from Laravel applications, providing end-to-end type safety between PHP backends and TypeScript frontends. Built on two foundational libraries (Surveyor for static analysis and Ranger for data transformation), Wayfinder generates type-safe route helpers, model attributes, validation rules, broadcast events, enums, and environment variables. It can automatically sync types across separate repositories via GitHub Actions and pull requests. The next-generation version is currently in public beta, with the stable route-generation version already included in Laravel Starter Kits.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel.com/blog/laravel-wayfinder-end-to-end-type-safety-for-php-and-typescript>

## Community discussion

Top comments from developers on daily.dev.

**@sizan5** · 2 upvotes

> This is a fantastic tool for full-stack Laravel developers. Automating type safety between PHP and TypeScript eliminates a major source of errors and significantly streamlines the development workflow. The seamless integration and automated syncing across repositories make it a compelling addition to any Laravel+TypeScript project.

**@damongege** · 1 upvotes

> so what about using typescript backend instead

**@prasoon81** · 0 upvotes

> Insightful..!

**@jmac75** · 0 upvotes

> I've just started using Wayfinder on a side-project, and it makes me weep over how much better my main project would be if I'd started using it sooner...

## Similar posts on daily.dev

- [Generating Types with Laravel Wayfinder](https://daily.dev/posts/generating-types-with-laravel-wayfinder-virqozaa9) · Larablog · 0 upvotes · 0 comments
- [A new beta of Laravel Wayfinder just dropped](https://daily.dev/posts/a-new-beta-of-laravel-wayfinder-just-dropped-73rfde4l9) · Laravel News · 33 upvotes · 1 comments

---

Tags: [#typescript](https://daily.dev/tags/typescript), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/laravel-wayfinder-end-to-end-type-safety-for-php-and-typescript-rcdxam3w8)
