Update Topic.php

This commit is contained in:
2020-08-10 06:17:30 +05:00
parent e6e0753d7b
commit 66993b5873

View File

@@ -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();
}
}