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