I am beginner in php and Laravel.
I have this code:
$workStart = $point->start; // return 01:05:00
$workEnd = $point->finish; // return 05:30:00
$timeNow = Carbon::now()->format('H:i'); // return 12:30:34
if (.....){
echo "user work";
} else {
echo "user NOT work";
}
How can I check if the user is working at the moment or not?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire