How to get to the next argument event if the second or third is false ? in my case gender is false but marital status is true but they stop at gender and not execute marital status. how can I make it continue to next argument event second or third is false ?
public function creditScore($user, $basic_information)
{
$basic_information->birth_date ? dispatch(new CalculateAge($user)) : false;
$basic_information->dependents ? dispatch(new CalculateDependents($user)) : false;
$basic_information->education ? dispatch(new CalculateEducation($user)) : false;
$basic_information->gender ? dispatch(new CalculateGender($user)) : false;
$basic_information->marital_status ? dispatch(new CalculateMaritalStatus($user)) : false;
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire