@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | { |
| 40 | 40 | $parent_links = self::where('parent_id', 0)->get(); |
| 41 | 41 | |
| 42 | - $parent_links->each(function ($item) { |
|
| 42 | + $parent_links->each(function($item) { |
|
| 43 | 43 | $item->route = str_replace('/', '-', $item->href); |
| 44 | 44 | })->toArray(); |
| 45 | 45 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | private static function filterPermission($user, $links) |
| 60 | 60 | { |
| 61 | - return $links->filter(function (Navlink $item) use ($user) { |
|
| 61 | + return $links->filter(function(Navlink $item) use ($user) { |
|
| 62 | 62 | $permission = str_replace('/', '.', $item->href); |
| 63 | 63 | |
| 64 | 64 | return $user->hasAccess($permission.'.view'); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | foreach ($children as $k => $child) { |
| 79 | 79 | $grand_children = self::where('parent_id', $child['id'])->get(); |
| 80 | 80 | |
| 81 | - $grand_children->each(function ($item) { |
|
| 81 | + $grand_children->each(function($item) { |
|
| 82 | 82 | $item->route = str_replace('/', '-', $item->href); |
| 83 | 83 | })->toArray(); |
| 84 | 84 | |