Ziggy
Use your Laravel named routes in JavaScript with a seamless route() helper function.
Why Ziggy?
Ziggy creates a JavaScriptroute() helper function that works like Laravel’s route() helper, allowing you to use your Laravel named routes in JavaScript just as easily as you do in PHP.
Installation
Install Ziggy via Composer and get started in minutes
Quickstart
Learn the basics and start using Ziggy in your app
TypeScript Support
Auto-generate types for route names and parameters
Framework Integration
Use with Vue, React, or any JavaScript framework
Key Features
Route Helper
JavaScript route() function that mirrors Laravel’s PHP helper
Route Model Binding
Full support for Laravel’s route-model binding with custom keys
TypeScript Ready
Generate type definitions for route autocompletion
Vue Plugin
Built-in Vue plugin for seamless integration
React Hook
useRoute() hook for React applications
Route Filtering
Control which routes are exposed to JavaScript
Quick Example
Getting Started
Community
Ziggy is built and maintained by Tighten, a team dedicated to making Laravel development better. Join thousands of developers using Ziggy in production.GitHub
View source code, report issues, and contribute
npm Package
Available as ziggy-js on npm