var id = $('input[name=radios]:checked', 'tbody').val(); у вас явная ошибка. Вы получаете первое значение первого выбранного radio элемента.var id = $(this).val();
dd($this->photoUser());dd($this->photoUser()->first());->where('module_id', $this->user_profile). Может, результатов попросту нет?if($this->photoUser()->first()){
return $this->photoUser()->first()->photo_user;
}
return null;