protected function prepareDataValue(array $config, array $data): array
    {
        $only = $config['only'] ?? null;
        $except = $config['except'] ?? null;

        if (! \is_null($only)) {
            return Arr::only($data, $only);
        } elseif (! \is_null($except)) {
            return Arr::except($data, $except);
        }

        return $data;
    }
protected function prepareDataValue(array $config, array $data): array
    {
        $only = $config['only'] ?? null;
        $except = $config['except'] ?? null;

        if (! \is_null($only)) {
            return Arr::only($data, $only);
        } elseif (! \is_null($except)) {
            return Arr::except($data, $except);
        }

        return $data;
    }
protected function prepareDataValue ( array $ config , array $ data ) : array { $ only = $ config [ 'only' ] ?? null ; $ except = $ config [ 'except' ] ?? null ; if ( ! \ is_null ( $ only ) ) { return Arr :: only ( $ data , $ only ) ; } elseif ( ! \ is_null ( $ except ) ) { return Arr :: except ( $ data , $ except ) ; } return $ data ; }
Prepare data to be seen to template.

@param  array  $config
@param  array  $data

@return array
Prepare data to be seen to template .