[WIP] Update Claim
This commit is contained in:
@@ -44,6 +44,11 @@ class Benefit extends Model
|
||||
// return $this->belongsTo(Benefit::class, 'benefit_code', 'code');
|
||||
// }
|
||||
|
||||
public function claimItem()
|
||||
{
|
||||
return $this->morphMany(ClaimItem::class, 'claim_itemable');
|
||||
}
|
||||
|
||||
public function plans()
|
||||
{
|
||||
return $this->belongsToMany(Plan::class, 'corporate_benefits', 'benefit_id', 'id')
|
||||
|
||||
Reference in New Issue
Block a user