public function buildFluentData(string $type, $row, Fluent $control): FieldContract
    {
        // set the name of the control
        $name = $control->get('name');
        $value = $this->resolveFieldValue($name, $row, $control);

        $data = new Field([
            'method' => '',
            'type' => '',
            'options' => [],
            'checked' => false,
            'attributes' => [],
            'name' => $name,
            'value' => $value,
        ]);

        return $this->resolveFieldType($type, $data);
    }
public function buildFluentData(string $type, $row, Fluent $control): FieldContract
    {
        // set the name of the control
        $name = $control->get('name');
        $value = $this->resolveFieldValue($name, $row, $control);

        $data = new Field([
            'method' => '',
            'type' => '',
            'options' => [],
            'checked' => false,
            'attributes' => [],
            'name' => $name,
            'value' => $value,
        ]);

        return $this->resolveFieldType($type, $data);
    }
public function buildFluentData ( string $ type , $ row , Fluent $ control ) : FieldContract { // set the name of the control $ name = $ control -> get ( 'name' ) ; $ value = $ this -> resolveFieldValue ( $ name , $ row , $ control ) ; $ data = new Field ( [ 'method' => '' , 'type' => '' , 'options' => [ ] , 'checked' => false , 'attributes' => [ ] , 'name' => $ name , 'value' => $ value , ] ) ; return $ this -> resolveFieldType ( $ type , $ data ) ; }
Build data.

@param  string  $type
@param  mixed  $row
@param  \Illuminate\Support\Fluent  $control

@return \Orchestra\Contracts\Html\Form\Field
Build data .