Generating URLs To Named Routes
Once you have assigned a name to a given route, you may use the route's name when generating URLs or redirects via the "route" function:
If the route defines parameters, you may pass the parameters as the second argument to the route method. The given parameters will automatically be inserted into the URL: