2
Antwort hat viele Preise:gibt es die Summe der Zahlen
Antwort-Modell:
public function rates()
{
return $this->hasMany('App\Rate');
}
Preistabelle:
id answer_id user_id rating
1 3 1 5
2 3 2 8
Wie ich die spezifische Antwort mit Summe der Bewertung erhalten haben ?