public static function initializeAndGatherData($attribute, $masterData)
    {
        $data = Arr::dot(static::initializeAttributeOnData($attribute, $masterData));

        return array_merge($data, static::extractValuesForWildcards(
            $masterData, $data, $attribute
        ));
    }
public static function initializeAndGatherData($attribute, $masterData)
    {
        $data = Arr::dot(static::initializeAttributeOnData($attribute, $masterData));

        return array_merge($data, static::extractValuesForWildcards(
            $masterData, $data, $attribute
        ));
    }
public static function initializeAndGatherData ( $ attribute , $ masterData ) { $ data = Arr :: dot ( static :: initializeAttributeOnData ( $ attribute , $ masterData ) ) ; return array_merge ( $ data , static :: extractValuesForWildcards ( $ masterData , $ data , $ attribute ) ) ; }
Initialize and gather data for given attribute.

@param  string  $attribute
@param  array  $masterData
@return array
Initialize and gather data for given attribute .