belongsTo(Policy::class, 'policy_id', 'policy_id'); } public function member() { return $this->belongsTo(Member::class, 'member_id', 'member_id'); } // public function setStartAttribute($value) // { // $this->attributes['start'] = $value ? strtotime($value) : null; // } // public function setEndAttribute($value) // { // $this->attributes['end'] = $value ? strtotime($value) : null; // } }