|
|
|
@ -44,7 +44,7 @@ class TableController extends Controller |
|
|
|
|
return view('table.view', [ |
|
|
|
|
'table' => $tableModel, |
|
|
|
|
'revision' => $revision, |
|
|
|
|
'columns' => Column::columnsFromJson(json_decode($revision->columns)), |
|
|
|
|
'columns' => Column::columnsFromJson($revision->columns), |
|
|
|
|
'rows' => $revision->rows()->paginate(25), |
|
|
|
|
]); |
|
|
|
|
} |
|
|
|
@ -204,7 +204,7 @@ class TableController extends Controller |
|
|
|
|
$parsed[$key] = $columns[$i]->cast($val); |
|
|
|
|
} |
|
|
|
|
return [ |
|
|
|
|
'data' => json_encode($parsed), |
|
|
|
|
'data' => $parsed, |
|
|
|
|
]; |
|
|
|
|
}, $rowTable); |
|
|
|
|
|
|
|
|
@ -215,7 +215,7 @@ class TableController extends Controller |
|
|
|
|
|
|
|
|
|
$revisionFields = [ |
|
|
|
|
'note' => "Initial revision of table $u->name/$input->name", |
|
|
|
|
'columns' => json_encode($columns), |
|
|
|
|
'columns' => $columns, |
|
|
|
|
'row_count' => count($rowsData), |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|