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