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.

8m read timeFrom laravel.com
Post cover image
Table of contents
The Problem Wayfinder SolvesWhat's Under the Hood: Surveyor and RangerWhat You Can Do with WayfinderGetting StartedKeep Your Frontend and Backend in Sync
4 Comments

Sort: