If $resource is null, generated route reference will be based on current request's route and parameters.
public generate ( mixed $resource = null, array $params = [] ) : |
||
$resource | mixed | The route name. Can be any resource supported by the different routers (e.g. Location object). |
$params | array | Array of parameters, used to generate the final link along with $resource. |
return |