Merge pull request #348 from shikorism/fix/tag-to-metadata-assoc

Tag -> Metadata のリレーション設定
This commit is contained in:
shibafu 2020-05-16 15:29:39 +09:00 committed by GitHub
commit dcdd33925b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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