ikinci temizlik tamamlandı

This commit is contained in:
Ümit Tunç
2026-04-28 21:15:09 +03:00
parent f80443aec0
commit 37e7296527
8313 changed files with 2400677 additions and 0 deletions
@@ -0,0 +1,35 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Contents;
use Illuminate\Support\Facades\DB;
//print_r( $request->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";