Completed
Push — widgets-pivot ( dc1e33 )
by Tony
02:59
created
app/Api/Controllers/DashboardController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
             if ($dashboard) {
61 61
                 if (is_numeric($request->copy_from)) {
62
-                    Dashboard::find($request->copy_from)->widgets->each(function (UsersWidgets $widget) use ($dashboard) {
62
+                    Dashboard::find($request->copy_from)->widgets->each(function(UsersWidgets $widget) use ($dashboard) {
63 63
                         $dashboard->widgets()->save($widget->replicate());
64 64
                     });
65 65
 
Please login to merge, or discard this patch.
app/Models/Dashboard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     {
56 56
         parent::boot();
57 57
 
58
-        static::deleting(function (Dashboard $dashboard) {
58
+        static::deleting(function(Dashboard $dashboard) {
59 59
             // delete related data
60 60
             $dashboard->widgets()->delete();
61 61
         });
Please login to merge, or discard this patch.