@@ -59,7 +59,7 @@ |
||
| 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 | |
@@ -55,7 +55,7 @@ |
||
| 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 | }); |