Создание отношений в Case_managers
модели.
public function risks()
{
return $this->hasOne('App\Models\Risk','foreign_key','local_key');
//if there is going to be multiple entries,change `hasOne` as `hasMany`
}
Вы можете получить доступ к рискам как
$res = Case_managers::find($id);
echo $res->risks->risk_field; //risk_field is the column name you want from risks table
//if `hasMany` is the relationship,use `foreach`
foreach($res->risks as $risk)
{
echo $risk->risk_field;
}