themes add and some fix

This commit is contained in:
stasbilay02 committed 2025-01-19 20:50:25 +03:00
1 parent 219ca30608
commit a943b960ad
200 files changed
+796 -106

No files matched your search

Regular → Executable
+3 -1
View File
@@ -94,7 +94,9 @@ class RestController
$model = $this->model->where('id', $id)->first();
foreach ($model->getFillable() as $item){
$model->{$item} = $data[$item] ?? null;
if (!empty($data[$item])){
$model->{$item} = $data[$item] ?? null;
}
}
$model->save();