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

ActiveLibrary

itparlour/laravel-location
==========================

11.0.0(7mo ago)010MITPHP

Since Aug 23Pushed 7mo ago1 watchersCompare

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

READMEChangelog (2)Dependencies (9)Versions (3)Used By (0)

Laravel Location
================

[](#laravel-location)

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 itparlour/laravel-location
```

### 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:

```
