commit
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user