diff --git a/app/Topic.php b/app/Topic.php index 282fbc7..a0ec749 100644 --- a/app/Topic.php +++ b/app/Topic.php @@ -7,8 +7,10 @@ use App\Article; class Topic extends Model { + protected $guarded = []; + public function articles() { - return $this->belongsToMany(Article::class); + return $this->belongsToMany(Article::class)->withTimestamps(); } }