0
は、私は私のデータベース内に3つのテーブルがあります:私は何をしたいかDBに参加::生()laravel 4
reponse[id,nomRep,#envoi_id]
envoi[id,#projet_id,#quest_id]
projet[id,nomProjet]
を使用して私のプロジェクトの名前を取得することです以下のコード:
$days = Input::get('days', 7);
$range = \Carbon\Carbon::now()->subDays($days);
$chartt = DB::table('reponse')
->where('created_at', '>=', $range)
->groupBy('value')
->remember(1440)
->get([
DB::raw('envoi_id as nomProjet')// here where i want to get the name of my project,
DB::raw('etatSatisfaction as value')
]);
return $chartt;
助けてください?
任意のヘルプpleaaaseを? –