Answers for "how to get today week month ad year data in eloquent"

PHP
0

how to get today week month ad year data in eloquent

Stats::where('created_at', '>', Carbon::now()->startOfWeek())
     ->where('created_at', '<', Carbon::now()->endOfWeek())
     ->get();
Posted by: Guest on September-20-2021

Code answers related to "how to get today week month ad year data in eloquent"

Browse Popular Code Answers by Language