Changelog
[v1.0.0] - 2020-11-06
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 $url
basePort
from false
to null
getRoutePayload()
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 hydrated
normalizeParams()
, 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)