Update Topic.php
This commit is contained in:
@@ -7,8 +7,10 @@ use App\Article;
|
|||||||
|
|
||||||
class Topic extends Model
|
class Topic extends Model
|
||||||
{
|
{
|
||||||
|
protected $guarded = [];
|
||||||
|
|
||||||
public function articles()
|
public function articles()
|
||||||
{
|
{
|
||||||
return $this->belongsToMany(Article::class);
|
return $this->belongsToMany(Article::class)->withTimestamps();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user