Completed
Push — master ( 3f6bda...9e3353 )
by Joao
03:40
created
src/Models/BaseUser.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -240,8 +240,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.