We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1622d39 commit bed0addCopy full SHA for bed0add
src/Facade/API.php
@@ -94,11 +94,12 @@ public static function router()
94
* Get the API route of the given name, and optionally specify the API version.
95
*
96
* @param string $routeName
97
+ * @param array $parameters
98
* @param string $apiVersion
99
* @return string
100
*/
- public static function route($routeName, $apiVersion = 'v1')
101
+ public static function route($routeName, $parameters = [], $apiVersion = 'v1')
102
{
- return static::$app['api.url']->version($apiVersion)->route($routeName);
103
+ return static::$app['api.url']->version($apiVersion)->route($routeName, $parameters);
104
}
105
0 commit comments