Skip to content

Addresses

Overview

Customers may save addresses to make checking-out easier and quicker.

Addresses

php
Lunar\Models\Address
FieldDescription
id
customer_id
titlenullable
first_name
last_name
company_namenullable
line_one
line_twonullable
line_threenullable
city
statenullable
postcodenullable
country_id
delivery_instructions
contact_email
contact_phone
last_used_atTimestamp for when the address was last used in an order.
metaJSON
shipping_defaultBoolean
billing_defaultBoolean
created_at
updated_at

Countries

php
Lunar\Models\Country
FieldDescription
id
name
iso3
iso2
phonecode
capital
currency
native
emojiFlag
emoji_uFlag
created_at
updated_at

States

php
Lunar\Models\State
FieldDescription
id
country_id
name
code
created_at
updated_at

Address Data

Data for Countries and States is provided by https://github.com/dr5hn/countries-states-cities-database.

You can use the following command to import countries and states.

sh
php artisan lunar:import:address-data