Laravel Locations

Laravel Locations provides a large database with Countries, Cities, Areas, Languages and Currencies models to your Laravel application

The package is ideal for applications that need:

  • Country/region selection dropdowns
  • Address validation and normalization
  • Multi-language support for location names
  • Currency conversion functionality
  • Location-based features and filtering

Database Contents

  • 250 Countries
  • 5038 Cities (States/Regions)
  • 149,350 Areas (subdivisions of Cities/States)

You can access this data either via the Eloquent models or directly through the JSON files included in the package.

By default, all records are active (is_activated = 1). You can filter active records using the activated() scope.

Deprecated: getActive() method is deprecated since v1.4.0. Use activated() scope instead.


Requirements

  • PHP 8.2 or higher
  • Laravel 9.x or higher