Skip to main content
Lunar ships with a full dataset of countries and states used for addresses, shipping, and tax calculations.

Overview

Lunar ships with a full dataset of countries and states that can be imported into your database. These are used across the system for Addresses, shipping zone configuration, tax calculations, and more.

Countries

Retrieving countries

Relationships

States

States (also known as provinces or regions) belong to a country. They are useful for tax calculations and shipping zone configuration.

Retrieving states

Relationships

Importing Data

Country and state data is provided by the countries-states-cities-database. Use the following Artisan command to import the data into your database.
This command should be run after installing Lunar and after any updates that may include new country or state data.