protected function extractInput(array $data)
    {
        $input = [];

        foreach ($data as $field => $fieldData) {
            $input[$field] = $fieldData[0];
        }

        return $input;
    }
protected function extractInput(array $data)
    {
        $input = [];

        foreach ($data as $field => $fieldData) {
            $input[$field] = $fieldData[0];
        }

        return $input;
    }
protected function extractInput ( array $ data ) { $ input = [ ] ; foreach ( $ data as $ field => $ fieldData ) { $ input [ $ field ] = $ fieldData [ 0 ] ; } return $ input ; }
Extract the field input from the data array.
@param  array  $data
@return array
Extract the field input from the data array .