2017-08-27 04:44:53 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Ejaculation extends Model
|
|
|
|
{
|
|
|
|
//
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'user_id', 'ejaculated_date',
|
2018-01-05 00:26:48 +09:00
|
|
|
'note', 'geo_latitude', 'geo_longitude', 'link',
|
2017-08-27 04:44:53 +09:00
|
|
|
'is_private'
|
|
|
|
];
|
2017-11-05 01:26:52 +09:00
|
|
|
|
|
|
|
protected $dates = [
|
|
|
|
'ejaculated_date'
|
|
|
|
];
|
2018-01-07 22:19:33 +09:00
|
|
|
|
|
|
|
public function user()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\User');
|
|
|
|
}
|
2018-01-08 08:50:22 +09:00
|
|
|
|
|
|
|
public function tags()
|
|
|
|
{
|
|
|
|
return $this->belongsToMany('App\Tag')->withTimestamps();
|
|
|
|
}
|
2017-08-27 04:44:53 +09:00
|
|
|
}
|