Lint
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
3567dc3620
commit
0575fe4e5c
|
@ -155,7 +155,7 @@ class MemberRequest extends FormRequest
|
|||
$request = request();
|
||||
/** @var Member */
|
||||
$member = request()->route('member');
|
||||
$when = fn () => true === $request->input('has_nami') && (!$member || !$member->has_nami);
|
||||
$when = fn () => true === $request->input('has_nami') && ($member !== null || !$member->has_nami);
|
||||
$validator->sometimes($attribute, $rules, $when);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue