@@ -240,8 +240,9 @@ |
||
240 | 240 | { |
241 | 241 | $results = $this->belongsToMany('App\Menu', 'Menu_User', 'user', 'menu')->withTimestamps()->where('pos', $pos)->get(); |
242 | 242 | |
243 | - foreach ($this->groups as $group) |
|
244 | - $results->merge($group->menus->where('pos', $pos)); |
|
243 | + foreach ($this->groups as $group) { |
|
244 | + $results->merge($group->menus->where('pos', $pos)); |
|
245 | + } |
|
245 | 246 | |
246 | 247 | return $results; |
247 | 248 | } |