「同じオカズでチェックイン」ボタンの追加
This commit is contained in:
1 parent
d224e6bba4
commit
503e8ba093
4 files changed
+8
-1
No files matched your search
@@ -27,4 +27,9 @@ class Ejaculation extends Model
|
||||
{
|
||||
return $this->belongsToMany('App\Tag')->withTimestamps();
|
||||
}
|
||||
|
||||
public function textTags()
|
||||
{
|
||||
return implode(' ', $this->tags->map(function ($v) { return $v->name; })->all());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user