コード例 #1
0
ファイル: CompanyService.php プロジェクト: Worklemon/api
 public function getDailyJobPostViews($job_id)
 {
     $date_lists = $this->getDateLists($job_id);
     $dates = CompanyJobView::select(DB::raw('DATE(created_at) as created_date'), DB::raw('COUNT(*) as count'))->where('job_id', '=', $job_id)->groupBy('created_date')->get()->toArray();
     return $this->processDates($date_lists, $dates);
 }