NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #403 most downloaded on Packagist
Use your Laravel named routes in JavaScript.
Last release 1 months ago
18 Aug 2026
Release timing varies
gaps range from 8 days to 5 months
Nearly every release is documented
notes for 57 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
95 releases · first in 2017
Fix intellisense/completions for partial route parameter objects by @bakerkretzmar in #880
Full Changelog: v2.6.3...v2.6.4
Fixed
One column per quarter.
Fix TypeError when optional params omitted from array (fixes #736 ) by @pataar in #878
Full Changelog: v2.6.2...v2.6.3
Fixed
Changed
Fix shared route bindings mutation in _substituteBindings by @pataar in #875
Full Changelog: v2.6.1...v2.6.2
Fixed
Allow specifying the name of the typescript declaration file by @bakerkretzmar in #872
Full Changelog: v2.6.0...v2.6.1
Support route model binding and interfaces by @christian98 in #854
@routes for improved CSP compatibility by @flexponsive in #831qs by @benmccann in #846# in URL by @bakerkretzmar in #863Full Changelog: v2.5.3...v2.6.0
Added
@routes for improved CSP compatibility by @flexponsive in https://github.com/tighten/ziggy/pull/831Fixed
# in URL by @bakerkretzmar in https://github.com/tighten/ziggy/pull/863Changed
qs by @benmccann in https://github.com/tighten/ziggy/pull/846fix type hinting for PHP 8.4 by @bodny in #816
Full Changelog: v2.5.2...v2.5.3
Fixed
Test on Laravel 12 by @shuvroroy in #820
Types.php by @rrmesquita in #821Full Changelog: v2.5.1...v2.5.2
Changed
Types.php by @rrmesquita in https://github.com/tighten/ziggy/pull/821Fix current() type in strict mode by @bakerkretzmar in #809
current() type in strict mode by @bakerkretzmar in #809Full Changelog: v2.5.0...v2.5.1
Fixed
current() type in strict mode by @bakerkretzmar in https://github.com/tighten/ziggy/pull/809feat: support passing except/only args to ziggy command by @joshmanders in #805
ParsedQs type by @bakerkretzmar in #806Full Changelog: v2.4.2...v2.5.0
Added
Fixed
ParsedQs type by @bakerkretzmar in https://github.com/tighten/ziggy/pull/806Fix deprecated implictly nullable parameter by @datlechin in #792
Full Changelog: v2.4.1...v2.4.2
Fixed
Fixed - Fix qs type dependencies
Fixed
qs type dependenciesAdd ability to strictly type check route names by @bakerkretzmar and @Andyuu in https://github.com/tighten/ziggy/pull/787
Added
Fixed
queryParams return type by @bakerkretzmar in https://github.com/tighten/ziggy/pull/788Changed
README.md. by @choowx in https://github.com/tighten/ziggy/pull/782Escape special regex characters when matching routes by @aguingand in https://github.com/tighten/ziggy/pull/766
Fixed
Changed
Add ability to acess only the query params or the actual route params by @peter-emad99 in https://github.com/tighten/ziggy/pull/744
Added
Changed
Fix double slashes with domain params by @bakerkretzmar in https://github.com/tighten/ziggy/pull/754
Fixed
Support Laravel Folio by @bakerkretzmar in https://github.com/tighten/ziggy/pull/733
Added
Fixed
Improve generated types to include optional types by @alexmccabe in https://github.com/tighten/ziggy/pull/697
Added
Fixed
Export the types file by @simon-tma in https://github.com/tighten/ziggy/pull/721
Fixed
Fix event listener propagation by @bakerkretzmar in https://github.com/tighten/ziggy/pull/724
Fixed
Add Vue plugin and React hook types by @bakerkretzmar in https://github.com/tighten/ziggy/pull/715
Fixed
Fix package.json module and exports by @bakerkretzmar in https://github.com/tighten/ziggy/pull/714
Fixed
Remove default export from type declarations by @bakerkretzmar in https://github.com/tighten/ziggy/pull/713
Fixed
Removed deprecated JavaScript check() method.
See UPGRADING for detailed upgrade instructions.
Changed
Tightenco\Ziggy to Tighten\Ziggy.Removed
makeDirectory method of CommandRouteGenerator class private.check() method.Nothing published for this version
Nothing published for this version
Test on Laravel 11 by @shuvroroy in https://github.com/tighten/ziggy/pull/709
Added
Fixed
route().current() with encoded characters by @bakerkretzmar in https://github.com/tighten/ziggy/pull/668route().current() with nested/object query params by @bakerkretzmar in https://github.com/tighten/ziggy/pull/712Changed
Update: Correction of some spellings and articles in the Readme file. by @prince-noman in https://github.com/tighten/ziggy/pull/678
Fixed
route().current() with encoded characters by @bakerkretzmar in https://github.com/tighten/ziggy/pull/668Changed
Add type declarations and ziggy.d.ts generation by @lmeysel and @bakerkretzmar in https://github.com/tighten/ziggy/pull/664
Added
ziggy.d.ts generation by @lmeysel and @bakerkretzmar in https://github.com/tighten/ziggy/pull/664Nothing published for this version
Nothing published for this version
Add useRoute() React hook by @bakerkretzmar in https://github.com/tighten/ziggy/pull/473
Added
useRoute() React hook by @bakerkretzmar in https://github.com/tighten/ziggy/pull/473Fixed
absolute: false by @bakerkretzmar in https://github.com/tighten/ziggy/pull/667Make slash "not encoding" less restrictive by @aguingand in https://github.com/tighten/ziggy/pull/661
Fixed
Fix numeric route names by @bakerkretzmar https://github.com/tighten/ziggy/pull/658
Fixed
Add 'ziggy.output.path' config option by @mhelaiwa https://github.com/tighten/ziggy/pull/633
Added
'ziggy.output.path' config option by @mhelaiwa https://github.com/tighten/ziggy/pull/633Add Vite instructions to README.md by @fullstackfool https://github.com/tighten/ziggy/pull/627
Added
Fixed
route().params not being decoded by @Tofandel in https://github.com/tighten/ziggy/pull/610Check for overridden getKeyName() and $primaryKey by @Jared0430 in https://github.com/tighten/ziggy/pull/630
Fixed
getKeyName() and $primaryKey by @Jared0430 in https://github.com/tighten/ziggy/pull/630Add support for negating route filter patterns with ! by @bakerkretzmar in https://github.com/tighten/ziggy/pull/559
Added
! by @bakerkretzmar in https://github.com/tighten/ziggy/pull/559Changed
Fixed
null as entire params argument by @bakerkretzmar in https://github.com/tighten/ziggy/pull/582Use global regex instead of replaceAll for better browser support by @bakerkretzmar in https://github.com/tighten/ziggy/pulls/548
Fixed
replaceAll for better browser support by @bakerkretzmar in https://github.com/tighten/ziggy/pulls/548Remove dead code by @Tofandel in https://github.com/tighten/ziggy/pull/525
Fixed
route().current() with 'wheres' that include regex start/end anchors by @bakerkretzmar in https://github.com/tighten/ziggy/pull/535Allow custom output via formatters by @jaulz in https://github.com/tighten/ziggy/pull/483
Added
provide/inject support to the Vue plugin by @c-fitzmaurice in https://github.com/tighten/ziggy/pull/518Fixed
Test on PHP 8.1 by @bakerkretzmar in https://github.com/tighten/ziggy/pull/484
Added
Fixed
Fix route().current() matching route names with multiple periods
Fixed
route().current() matching route names with multiple periods (#466)Fix undefined error if there's no global Ziggy variable
Add support for parameters inside single route segments
Added
Fixed - Fix nested object query params
Fixed
Fix route model binding with abstract class
Fixed
Fix property mangling and implement ES5 compatibility
Fixed
Fixed - Revert
Fixed
Remove Babel preset to correctly transpile to ES5 by default
Fixed
Use Object.assign() to merge routes
Changed
Object.assign() to merge routes (#429)Make location configurable (adds better support for SSR)
Added
location configurable (adds better support for SSR) (#432)Added - Add Vue plugins (#407, #424)
Added - Prepare for Laravel Octane
Added
Add support for appending 'extra' parameters to the query string
Fix bug where route().current() could incorrectly return true on URLs with no parameters
Filter out unnamed cached routes with randomly generated names
Make ziggy:generate URL behaviour consistent with Ziggy class and Blade directive
Fix route().current() on routes at the domain root
Fixed
route().current() on routes at the domain root (#356)Deprecate the with() and check() methods
Added
check() method (#294) and how to install and use Ziggy via npm and over a CDN (#299)/users/{user}/posts/{post:slug} (#307)current() to check against the current URL in addition to the route name (#330)Changed
ziggy:generate output path for Laravel 5.7+ resources directory structure, thanks @Somethingideally! (#269)id parameter detection to check for higher priority named route parameters and allow passing id as a query parameter (#301)RoutePayload class to Ziggy and remove its compile method in favour of constructing a new instance and calling ->toArray() or ->toJson() (#305)
new Ziggy(...) now takes only 2 arguments, $group and $urlbasePort from false to nullgetRoutePayload() methods on the BladeRouteGenerator and CommandRouteGenerator classeswhitelist and blacklist functionality to only and except (#300)baseUrl to the value of the APP_URL environment variable instead of url('/') (#334)route() function when any arguments are passed to it (#336)namedRoutes → routes, defaultParameters → defaults, baseUrl → url, and basePort → port (#338)filter() method on the Ziggy class return an instance of that class instead of a collection of routes (#341)nameKeyedRoutes(), resolveBindings(), applyFilters(), and group() methods on the Ziggy class, and the generate() method on the CommandRouteGenerator class, private (#341)index.js instead of route.js (#344).current() respects the value of the absolute option (#353)Deprecated
with() and check() methods (#330)Removed
Route Facade macros Route::only() and Route::except() (previously Route::whitelist() and Route::blacklist()) (#306)Router class returned by the route() function (#330):
name, absolute, ziggy, urlBuilder, template, urlParams, queryParams, and hydratednormalizeParams(), hydrateUrl(), matchUrl(), constructQuery(), extractParams(), parse(), and trimParam()UrlBuilder class (#330)url() method now that route(...) returns a string (#336)baseDomain and baseProtocol properties on the Ziggy config object (#337)appendRouteToList(), isListedAs(), except(), and only() methods from the Ziggy class (#341)Fixed
id parameter detection by also excluding routes with an optional id parameter ({id?}), thanks @Livijn! (#263)current() when the current URL has a query string (#330)Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →