public function transformDataFromRepository($modelData)
    {
        foreach ($this->columnTransforms as $columnName => $transforms) {
            if ($transforms[0] !== null) {
                $closure = $transforms[0];

                $modelData[$columnName] = $closure($modelData);
            }
        }

        return $modelData;
    }
public function transformDataFromRepository($modelData)
    {
        foreach ($this->columnTransforms as $columnName => $transforms) {
            if ($transforms[0] !== null) {
                $closure = $transforms[0];

                $modelData[$columnName] = $closure($modelData);
            }
        }

        return $modelData;
    }
public function transformDataFromRepository ( $ modelData ) { foreach ( $ this -> columnTransforms as $ columnName => $ transforms ) { if ( $ transforms [ 0 ] !== null ) { $ closure = $ transforms [ 0 ] ; $ modelData [ $ columnName ] = $ closure ( $ modelData ) ; } } return $ modelData ; }
Checks if raw repository data needs transformed before passing to the model.

@param  $modelData
@return mixed
Checks if raw repository data needs transformed before passing to the model .