[WIP] Cashless

This commit is contained in:
R
2023-01-11 14:29:02 +07:00
parent 804ac883fa
commit 552a2367f5
14 changed files with 1772 additions and 1037 deletions

View File

@@ -179,7 +179,7 @@ class Plan extends Model
public function benefits()
{
return $this->belongsToMany(Benefit::class, 'corporate_benefits', 'plan_id', 'id')
return $this->belongsToMany(Benefit::class, 'corporate_benefits', 'plan_id', 'benefit_id')
->withTimestamps()
->withPivot([
// TODO corporate_benefits pivot