themes add and some fix

This commit is contained in:
2025-01-19 20:50:25 +03:00
parent 219ca30608
commit a943b960ad
200 changed files with 796 additions and 106 deletions

4
kernel/RestController.php Normal file → Executable file
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();