Skip to content

Commit

Permalink
formatting #1818
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Jan 29, 2021
1 parent 6edec2a commit 62f1f4c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Transformers/Common/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class Widget extends TransformerAbstract
*/
public function transform(Model $model)
{
session(['dashboard_id' => $model->dashboard_id]);

return [
'id' => $model->id,
'company_id' => $model->company_id,
Expand All @@ -28,7 +26,7 @@ public function transform(Model $model)
'name' => $model->name,
'sort' => $model->sort,
'settings' => $model->settings,
'data' => show_widget($model->class),
'data' => show_widget($model),
'created_at' => $model->created_at ? $model->created_at->toIso8601String() : '',
'updated_at' => $model->updated_at ? $model->updated_at->toIso8601String() : '',
];
Expand Down

0 comments on commit 62f1f4c

Please sign in to comment.