I have this function where there are more than one form
$valorasociado = new RadicadosAsociado();
$valorasociado->RasRadicados = $id;
$valorasociado->RasRadcadoAsociado = $request['RasRadcadoAsociado'];
$valorasociado->save();
I want it to run on receiving a value if it does not pass to the other.
I know the concept of conditions if
but until now I will implement it, I do not know how.