This commit is contained in:
Azfar Arsyad
2022-03-10 16:49:06 +08:00
parent 150da4081d
commit b4925b080b
8 changed files with 52 additions and 17 deletions
@@ -1,6 +1,7 @@
<?php
namespace App\Http\Controllers;
use App\Events\LelongNotify;
use Illuminate\Http\Request;
use Spatie\Permission\Models\Role;
@@ -349,6 +350,7 @@ class LelongController extends Controller
public function start($id)
{
event(new LelongNotify('start'));
$currentdate = Carbon::now();
$currenttime = $currentdate->toTimeString();
$endtime = $currentdate->addHours(2);
@@ -552,6 +554,7 @@ class LelongController extends Controller
public function stop($id)
{
event(new LelongNotify('stop'));
$currentdate = Carbon::now();
$currenttime = $currentdate->toTimeString();