I have a table full of UNIX timestamps and I want to strip the time and check againt the CURRENT_DATE and grab the total count.
$shippedCount = Model::whereRaw('DATE(UNIX TABLE) =
CURRENT_DATE')->count();
What is the best way to go about this.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire