Time and date both are different fields but when I use this coding result is not perfect.
This is my code:
$challenges = Challenge::whereDate('c_date','>',Carbon::now())->get();
Challenge::whereTime('c_time','>',Carbon::now())->get();
Are there any problems in this code?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire