all()); $post = $request->all(); /* Array ( [table] => contents [value] => Başlık buraya [_token] => yVfSAMNxOD6rdtIeLkZllFvm46a1TAgPtbO1fJHu [id] => 62 [name] => name ) */ if(!isset($post['key'])) { $post['key'] = "id"; } DB::table($post['table']) ->where($post['key'], $post['id']) ->update([ $post['name'] => $post['value'], 'updated_at' => simdi(), ]); $return = back(); echo "ok";