PHPackages                             bdhabib/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. bdhabib/laravel-location

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

bdhabib/laravel-location
========================

This is laravel location liberty

1.0.3(1y ago)03MITPHPPHP ^8.2

Since Apr 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/creativehabib/laravel-location)[ Packagist](https://packagist.org/packages/bdhabib/laravel-location)[ RSS](/packages/bdhabib-laravel-location/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (8)Versions (5)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 bdhabib/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:

```
