protected function setFieldValue($id)
    {
        $relations = $this->getRelations();

        $this->model = $this->model->with($relations)->findOrFail($id);

//        static::doNotSnakeAttributes($this->model);

        $data = $this->model->toArray();

        $this->builder->fields()->each(function (Field $field) use ($data) {
            $field->fill($data);
        });
    }
protected function setFieldValue($id)
    {
        $relations = $this->getRelations();

        $this->model = $this->model->with($relations)->findOrFail($id);

//        static::doNotSnakeAttributes($this->model);

        $data = $this->model->toArray();

        $this->builder->fields()->each(function (Field $field) use ($data) {
            $field->fill($data);
        });
    }
protected function setFieldValue ( $ id ) { $ relations = $ this -> getRelations ( ) ; $ this -> model = $ this -> model -> with ( $ relations ) -> findOrFail ( $ id ) ; //        static::doNotSnakeAttributes($this->model); $ data = $ this -> model -> toArray ( ) ; $ this -> builder -> fields ( ) -> each ( function ( Field $ field ) use ( $ data ) { $ field -> fill ( $ data ) ; } ) ; }
Set all fields value in form.

@param $id
Set all fields value in form .