|
|
|
@ -156,6 +156,7 @@ class CommonController extends Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$data = (new CommonModel())->setTable($this->model->getTable())->filterRequestColumns($request, ["id"]);
|
|
|
|
$data = (new CommonModel())->setTable($this->model->getTable())->filterRequestColumns($request, ["id"]);
|
|
|
|
|
|
|
|
dd($data);
|
|
|
|
$model = $this->model->find($id ?: $request->id);
|
|
|
|
$model = $this->model->find($id ?: $request->id);
|
|
|
|
$model->update($data);
|
|
|
|
$model->update($data);
|
|
|
|
$this->updated($model);
|
|
|
|
$this->updated($model);
|
|
|
|
|