protected function getDataType($type, $columnType)
    {
        $map = Config::dataTypeMap();

        if (in_array($columnType, ['bit', 'tinyint(1)'])) {
            return 'boolean';
        }

        if (!array_key_exists($type, $map)) {
            throw new Exception("The type " . $type . " is not mapped in the 'eloquent_type_to_method' key in the config file.");
        }

        return $map[$type];
    }
protected function getDataType($type, $columnType)
    {
        $map = Config::dataTypeMap();

        if (in_array($columnType, ['bit', 'tinyint(1)'])) {
            return 'boolean';
        }

        if (!array_key_exists($type, $map)) {
            throw new Exception("The type " . $type . " is not mapped in the 'eloquent_type_to_method' key in the config file.");
        }

        return $map[$type];
    }
protected function getDataType ( $ type , $ columnType ) { $ map = Config :: dataTypeMap ( ) ; if ( in_array ( $ columnType , [ 'bit' , 'tinyint(1)' ] ) ) { return 'boolean' ; } if ( ! array_key_exists ( $ type , $ map ) ) { throw new Exception ( "The type " . $ type . " is not mapped in the 'eloquent_type_to_method' key in the config file." ) ; } return $ map [ $ type ] ; }
Gets the data type for a given field.

@param string $type
@param string $columnType

@return $this
Gets the data type for a given field .