@@ -26,10 +26,10 @@ discard block |
||
| 26 | 26 | return $content |
| 27 | 27 | ->header(trans('admin.menu')) |
| 28 | 28 | ->description(trans('admin.list')) |
| 29 | - ->row(function (Row $row) { |
|
| 29 | + ->row(function(Row $row) { |
|
| 30 | 30 | $row->column(6, $this->treeView()->render()); |
| 31 | 31 | |
| 32 | - $row->column(6, function (Column $column) { |
|
| 32 | + $row->column(6, function(Column $column) { |
|
| 33 | 33 | $form = new \Encore\Admin\Widgets\Form(); |
| 34 | 34 | $form->action(url(admin_base_path('auth/menu'))); |
| 35 | 35 | |
@@ -71,10 +71,10 @@ discard block |
||
| 71 | 71 | { |
| 72 | 72 | $menuModel = config('admin.database.menu_model'); |
| 73 | 73 | |
| 74 | - return $menuModel::tree(function (Tree $tree) { |
|
| 74 | + return $menuModel::tree(function(Tree $tree) { |
|
| 75 | 75 | $tree->disableCreate(); |
| 76 | 76 | |
| 77 | - $tree->branch(function ($branch) { |
|
| 77 | + $tree->branch(function($branch) { |
|
| 78 | 78 | $payload = "<i class='fa {$branch['icon']}'></i> <strong>{$branch['title']}</strong>"; |
| 79 | 79 | |
| 80 | 80 | if (!isset($branch['children'])) { |