src/Utilities/Helper.php
public static function getMixedValue(array $data, $param)
    {
        $casted = self::castToArray($param);

        $data['model'] = $param;

        foreach ($data as $key => $value) {
            if (isset($casted[$key])) {
                $data[$key] = $casted[$key];
            }
        }

        return $data;
    }
public static function getMixedValue(array $data, $param)
    {
        $casted = self::castToArray($param);

        $data['model'] = $param;

        foreach ($data as $key => $value) {
            if (isset($casted[$key])) {
                $data[$key] = $casted[$key];
            }
        }

        return $data;
    }
public static function getMixedValue ( array $ data , $ param ) { $ casted = self :: castToArray ( $ param ) ; $ data [ 'model' ] = $ param ; foreach ( $ data as $ key => $ value ) { if ( isset ( $ casted [ $ key ] ) ) { $ data [ $ key ] = $ casted [ $ key ] ; } } return $ data ; }
Get a mixed value of custom data and the parameters.

@param  array $data
@param  mixed $param
@return array
Get a mixed value of custom data and the parameters .