tissue/app/Tag.php

23 lines
321 B
PHP
Raw Normal View History

2018-01-08 08:50:22 +09:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Tag extends Model
{
//
protected $fillable = [
'name'
];
protected $visible = [
'name'
];
2018-01-08 08:50:22 +09:00
public function ejaculations()
{
return $this->belongsToMany('App\Ejaculation')->withTimestamps();
}
}