diff --git a/app/Models/User.php b/app/Models/User.php index 3176b8a1..efa6dffd 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -176,11 +176,19 @@ class User extends Authenticatable return $this->hasMany(Message::class, 'receiver'); } + /** + * torrent comments + * @return \Illuminate\Database\Eloquent\Relations\HasMany + */ public function comments() { return $this->hasMany(Comment::class, 'user'); } + /** + * forum posts + * @return \Illuminate\Database\Eloquent\Relations\HasMany + */ public function posts() { return $this->hasMany(Post::class, 'userid'); diff --git a/bootstrap/app.php b/bootstrap/app.php index 3db5aec2..59a47a18 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -1,7 +1,7 @@