add setting: custom menu enable or not

This commit is contained in:
xiaomlove
2022-08-04 18:38:02 +08:00
parent 23804a0b14
commit 8fd5fa0df6
9 changed files with 69 additions and 36 deletions

View File

@@ -86,9 +86,14 @@ class Test extends Command
*/
public function handle()
{
$menuRep = new MenuRepository();
$r = $menuRep->listItems()->toArray();
dd($r);
add_filter('ttt', function ($d) {
$d[] = 100;
return $d;
});
$a = [];
$a[] = '1';
$a = apply_filter('ttt', $a);
dd($a);
}