Basic implementation of payment methods
This commit is contained in:
@@ -64,6 +64,7 @@ class EventParticipant extends InstancedModel
|
||||
'amount',
|
||||
'amount_paid',
|
||||
'payment_purpose',
|
||||
'payment_method',
|
||||
'efz_status',
|
||||
'unregistered_at',
|
||||
];
|
||||
@@ -126,6 +127,11 @@ class EventParticipant extends InstancedModel
|
||||
return $this->belongsTo(EatingHabit::class, 'eating_habits', 'slug');
|
||||
}
|
||||
|
||||
public function paymentMethod()
|
||||
{
|
||||
return $this->belongsTo(\App\Models\PaymentMethod::class, 'payment_method', 'slug');
|
||||
}
|
||||
|
||||
public function firstAidPermission()
|
||||
{
|
||||
return $this->belongsTo(FirstAidPermission::class, 'first_aid_permission', 'slug');
|
||||
|
||||
Reference in New Issue
Block a user