> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lunarphp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Addresses

## Overview

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

## Addresses

```php theme={null}
Lunar\Models\Address
```

| Field | Description |
| :- | :- |
| `id` | |
| `customer_id` | |
| `title` | nullable |
| `first_name` | |
| `last_name` | |
| `company_name` | nullable |
| `line_one` | |
| `line_two` | nullable |
| `line_three` | nullable |
| `city` | |
| `state` | nullable |
| `postcode` | nullable |
| `country_id` | |
| `delivery_instructions` | |
| `contact_email` | |
| `contact_phone` | |
| `last_used_at` | Timestamp for when the address was last used in an order. |
| `meta` | JSON |
| `shipping_default` | Boolean |
| `billing_default` | Boolean |
| `created_at` | |
| `updated_at` | |

## Countries

```php theme={null}
Lunar\Models\Country
```

| Field | Description |
| :- | :- |
| `id` | |
| `name` | |
| `iso3` | |
| `iso2` | |
| `phonecode` | |
| `capital` | |
| `currency` | |
| `native` | |
| `emoji` | Flag |
| `emoji_u` | Flag |
| `created_at` | |
| `updated_at` | |

## States

```php theme={null}
Lunar\Models\State
```

| Field | Description |
| :- | :- |
| `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](https://github.com/dr5hn/countries-states-cities-database).

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

```sh theme={null}
php artisan lunar:import:address-data
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.