how to get today week month ad year data in eloquent

Solutions on MaxInterview for how to get today week month ad year data in eloquent by the best coders in the world

showing results for - "how to get today week month ad year data in eloquent"
Florine
22 Oct 2020
1Stats::where('created_at', '>', Carbon::now()->startOfWeek())
2     ->where('created_at', '<', Carbon::now()->endOfWeek())
3     ->get();
4
similar questions