RR
Size: a a a
RR
ЕП
️V
RR
RR
С
CourseDay::query()
->withCount('goals')
->select(DB::raw('goals_count, week'))
->where('program_id', $tracker->course_day->program_id)
->where('day', '<>', '0')
->get();
als_count и
з метода withCount('goals_count’)
count’ => 4
],count’ => 3
],D
D
y
CourseDay::query()
->withCount('goals')
->select(DB::raw('goals_count, week'))
->where('program_id', $tracker->course_day->program_id)
->where('day', '<>', '0')
->get();
als_count и
з метода withCount('goals_count’)
count’ => 4
],count’ => 3
],CourseDay::query()
->selectRaw('course_days.week, count(goals.id) as goals_count')
->join('course_day_goal as pivot', 'course_days.id', 'pivot.course_day_id')
->join('goals', 'pivot.goal_id', 'goals.id')
->groupBy('course_days.week')
->get();
y
RR
ДК
U
RR
U
V
D
U
EG
V