From 12639a09b0b66369db64bf37bd2e17c67daa7725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=BCndig?= Date: Sat, 30 Jan 2016 19:18:31 +0100 Subject: [PATCH] Relationships korrigiert --- app/Client.php | 2 +- app/Question.php | 2 +- app/Topic.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Client.php b/app/Client.php index 851e05f..a5a829b 100644 --- a/app/Client.php +++ b/app/Client.php @@ -6,7 +6,7 @@ class Client extends Model { - public function answer() + public function answers() { return $this->hasMany('App\Answer'); } diff --git a/app/Question.php b/app/Question.php index 53d2d5e..473a7e0 100644 --- a/app/Question.php +++ b/app/Question.php @@ -17,7 +17,7 @@ public function topic() return $this->belongsTo('App\Topic'); } - public function answer() + public function answers() { return $this->hasMany('App\Answer'); } diff --git a/app/Topic.php b/app/Topic.php index 33a0e35..7e99dc7 100644 --- a/app/Topic.php +++ b/app/Topic.php @@ -10,7 +10,7 @@ class Topic extends Model 'text', ]; - public function topic() + public function questions() { return $this->hasMany('App\Question'); }