-
-
Notifications
You must be signed in to change notification settings - Fork 512
Open
Labels
Description
Right now, the current localization system does not handle using field names in route parameters.
Example
Route definitions
french: /ville/{city:slug}
--> default language
english: /city/{city:slug}
Using LaravelLocalization::getLocalizedURL()
to get the english url, it will return /en/ville/{city:slug}
.
After checking, it seems that when getting the attributes it ignores :slug
and uses the key city
and then tries to find {city} in the translated url to return it.
I wish to not use the route binding on my model as the id and other attributes are used in other places.
Thanks in advance !
kamranata and marcbelletre