Merge pull request #1708 from bosix/feature-1707

add option to allow params in menu.php
This commit is contained in:
Jitendra Singh 2019-10-31 19:18:46 +05:30 committed by GitHub
commit 1a9989ed91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class Tree {
$item['children'] = [];
if ($type == 'menu') {
$item['url'] = route($item['route']);
$item['url'] = route($item['route'], $item['params'] ?? []);
if (strpos($this->current, $item['url']) !== false) {
$this->currentKey = $item['key'];
@ -106,4 +106,4 @@ class Tree {
return 'active';
}
}
}
}