Skip to content

Commit 2caa9f2

Browse files
committed
Support children
1 parent 5e93514 commit 2caa9f2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Pckg/Framework/Helper/functions.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,13 @@ function route($route, $view, $controller = null)
12141214
}
12151215

12161216
if (!function_exists('vueRoute')) {
1217-
function vueRoute($route, $component, array $tags = [], array $children = [])
1217+
/**
1218+
* @param string $route
1219+
* @param string|null $component
1220+
* @param array $tags
1221+
* @return Router\Route\Route|Router\Route\VueRoute
1222+
*/
1223+
function vueRoute(string $route = '', string $component = null, array $tags = [], array $children = [])
12181224
{
12191225
return (new Router\Route\VueRoute($route, function () use ($tags) {
12201226
$config = config();

0 commit comments

Comments
 (0)