public function getFieldValue($fieldId)
    {
        $object = new RepeaterValue();
        if (is_numeric($this->id)) {
            $repeatValues = $this->fieldValues()->where('field_id', $fieldId)->get();
            if ($repeatValues->count()) {
                $object = $repeatValues[0];
            }
        }

        return $object;
    }
public function getFieldValue($fieldId)
    {
        $object = new RepeaterValue();
        if (is_numeric($this->id)) {
            $repeatValues = $this->fieldValues()->where('field_id', $fieldId)->get();
            if ($repeatValues->count()) {
                $object = $repeatValues[0];
            }
        }

        return $object;
    }
public function getFieldValue ( $ fieldId ) { $ object = new RepeaterValue ( ) ; if ( is_numeric ( $ this -> id ) ) { $ repeatValues = $ this -> fieldValues ( ) -> where ( 'field_id' , $ fieldId ) -> get ( ) ; if ( $ repeatValues -> count ( ) ) { $ object = $ repeatValues [ 0 ] ; } } return $ object ; }
Get repeater data by fieldId.

@param $fieldId

@return RepeaterValue
Get repeater data by fieldId .