Fixed: Validate subscription id
This commit is contained in:
parent
4ba63d6391
commit
b7d292289a
|
@ -31,7 +31,7 @@ class MemberRequest extends FormRequest
|
||||||
return [
|
return [
|
||||||
'first_activity_id' => Rule::requiredIf(fn() => $this->method() == 'POST'),
|
'first_activity_id' => Rule::requiredIf(fn() => $this->method() == 'POST'),
|
||||||
'first_subactivity_id' => Rule::requiredIf(fn() => $this->method() == 'POST'),
|
'first_subactivity_id' => Rule::requiredIf(fn() => $this->method() == 'POST'),
|
||||||
'fee_id' => Rule::requiredIf(function() {
|
'subscription_id' => Rule::requiredIf(function() {
|
||||||
if ($this->method() != 'POST') {
|
if ($this->method() != 'POST') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue