NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #411 most downloaded on Packagist
Use your Laravel named routes in JavaScript.
Latest stable
v2.7.0
Last release 7 days ago
14 Nov 2026
Release timing varies
gaps range from 8 days to 5 months
Nearly every release is documented
notes for 58 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
97 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
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)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix escaping of . characters in the current() method, thanks @davejamesmiller!
Fixed
. characters in the current() method, thanks @davejamesmiller! (#296)Add support for passing a CSP nonce attribute to the @routes Blade directive to be set on the script tag, thanks @tminich!
Added
nonce attribute to the @routes Blade directive to be set on the script tag, thanks @tminich! (#287)Changed
dist/js/route.js as the npm package's main target, thanks @ankurk91 and @benallfree! (#276)Fixed
For previous changes see the Releases page.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.