You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
Currently, only optional params are exposed when looking at a service.
Example:
It'd be awesome to add support for non-optional params
Example:
In
Service.php
, in thetoArray()
method, this is happening:$routeWithReplacements = str_replace(['[', ']', '{/', '{:'], ['{', '}', '/{', '{'], $service->route);
Changing it to:
$routeWithReplacements = preg_replace('#\[?\/:(\w+)\]?#', '/{$1}', $service->route);
will give the results I'd like to see.
If this change is acceptable, I can go ahead and make a PR, otherwise, I'm open to hearing other ideas to add support for this.
The text was updated successfully, but these errors were encountered: