I´ve got a list of objects “$someObjectsList”, and need the number of objects created last week. The condition is following:
$lastWeek = Carbon::now()->subWeek();
… get the Listing of the class …
$weeklyListOfObjects->setCondition(“objectName LIKE ? AND objectDate > ?”,["%$name%", $lastWeek]);
$this->weeklyListOfObjects = §weeklyListOfObjects
weeklyListOfObjects = §weeklyListOfObjects
I get the number of all objects, but I not the number of objects from lastWeek
Does somebody has any idea?