Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #today #week #month #ad #year #data #eloquent
ADD COMMENT
Topic
Name
4+5 =