タグ登録機能の追加

This commit is contained in:
shibafu committed 2018-01-08 08:50:22 +09:00
1 parent d7b16cd6d5
commit b1dcc36565
7 files changed
+96 -12

No files matched your search

+5
View File
@@ -22,4 +22,9 @@ class Ejaculation extends Model
{
return $this->belongsTo('App\User');
}
public function tags()
{
return $this->belongsToMany('App\Tag')->withTimestamps();
}
}