PHPackages                             ichtrojan/laravel-location - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ichtrojan/laravel-location

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ichtrojan/laravel-location
==========================

3.3.0(5y ago)2102.9k41[2 issues](https://github.com/ichtrojan/laravel-location/issues)MITPHPCI failing

Since May 11Pushed 2y ago4 watchersCompare

[ Source](https://github.com/ichtrojan/laravel-location)[ Packagist](https://packagist.org/packages/ichtrojan/laravel-location)[ Fund](https://rave.flutterwave.com/pay/trojantjkf)[ RSS](/packages/ichtrojan-laravel-location/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (7)Dependencies (9)Versions (9)Used By (0)

Laravel Location ▲
==================

[](#laravel-location-)

[![hero](https://camo.githubusercontent.com/a176626cbdbcfe8e0c4acfea2244de1df5a0b4c165ae118973dfd5dcc0bda4dd/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f69636874726f6a616e2f696d6167652f75706c6f61642f76313535373631323731372f53637265656e73686f745f323031392d30352d31315f61745f31312e31312e31375f504d5f7176617477312e706e67)](https://camo.githubusercontent.com/a176626cbdbcfe8e0c4acfea2244de1df5a0b4c165ae118973dfd5dcc0bda4dd/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f69636874726f6a616e2f696d6167652f75706c6f61642f76313535373631323731372f53637265656e73686f745f323031392d30352d31315f61745f31312e31312e31375f504d5f7176617477312e706e67)

Introduction 🖖
--------------

[](#introduction-)

This Package offers a simple way to get Countries, Cities and States that you may need for your Application, most especially for dropdown menus.

### Step One - Install via Composer 🎼

[](#step-one---install-via-composer-)

Require the package via composer into your project

```
composer require ichtrojan/laravel-location
```

[![composer install](https://camo.githubusercontent.com/c8ae5cf12276396887ab965801160bae077fce121d3c896dd51654dbf0b46c6b/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f69636874726f6a616e2f696d6167652f75706c6f61642f76313535373630313533332f53637265656e73686f745f323031392d30352d31315f61745f382e30342e34395f504d5f6f6a697861612e706e67)](https://camo.githubusercontent.com/c8ae5cf12276396887ab965801160bae077fce121d3c896dd51654dbf0b46c6b/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f69636874726f6a616e2f696d6167652f75706c6f61642f76313535373630313533332f53637265656e73686f745f323031392d30352d31315f61745f382e30342e34395f504d5f6f6a697861612e706e67)

### Step Two - Publish Configurations ⚙️

[](#step-two---publish-configurations-️)

Laravel location provides you with an easy way of customizing the tables used for storing Countries, States and Cities. Also, you can customisethe route prefix and middleware. To customize these you need to publish the configuration file. To publish the configuration file, run:

`php artisan vendor:publish --tag=laravel-location`

You will have `config/location.php` available for you to edit. The default configurations are:

```
