Tag -> Metadata のリレーション設定

This commit is contained in:
shibafu 2020-05-16 15:25:03 +09:00
parent c11bbbbff7
commit 552c2d4460

View File

@ -19,4 +19,9 @@ class Tag extends Model
{ {
return $this->belongsToMany('App\Ejaculation')->withTimestamps(); return $this->belongsToMany('App\Ejaculation')->withTimestamps();
} }
public function metadata()
{
return $this->belongsToMany('App\Metadata')->withTimestamps();
}
} }