This commit is contained in:
Azfar Arsyad
2022-02-08 12:52:20 +08:00
parent 799b3514b3
commit 0167637e27
10 changed files with 357 additions and 6 deletions
+9 -1
View File
@@ -27,6 +27,9 @@ use App\Models\LelongBidMarhun;
use App\Models\LelKarat;
use App\Models\LelKarat_temp;
use Carbon\Carbon;
class LelongController extends Controller
{
/**
@@ -333,8 +336,13 @@ class LelongController extends Controller
public function start($id)
{
$currentdate = Carbon::now();
$currenttime = $currentdate->toTimeString();
$endtime = $currentdate->addHours(2);
$lelong = Lelong::where('id','=',$id)->first();
$lelong->masatamat_lelong = '2021-12-20 04:51:50';
$lelong->masamula_lelong = $currenttime;
$lelong->masatamat_lelong = $endtime->toTimeString();
$lelong->sts_lelong = 1;
$lelong->save();