Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel group by created_at date only

//Laravel ⛳

DB::table('table_name')
  ->select('*',DB::raw('DATE(created_at) as date'))
  ->get()->groupBy('date');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #group #date
ADD COMMENT
Topic
Name
2+2 =