Laravel Locations

README.md

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

Related Packages

laravel-blacklist.php

Laravel Blacklist

Advanced Laravel validation package providing intelligent content filtering with customizable blacklists, profanity detection, and whole-word matching algorithms. Prevents spam, inappropriate content, and system abuse while avoiding false positives. Essential for user-generated content, comments, forums, and social platforms.

laravel-email-change-confirmation.php

Laravel Email Change Confirmation

Enterprise-grade Laravel package implementing secure email change workflows with dual confirmation system. Features fraud prevention, rate limiting, email verification, rollback capabilities, and audit trails. Protects user accounts from unauthorized access while maintaining seamless user experience in authentication systems.

laravel-gdpr-exporter.php

Laravel GDPR Exporter

Professional Laravel package ensuring GDPR compliance through automated user data exports in JSON, CSV, XML, and HTML formats. Features Livewire components, progress tracking, email notifications, and data anonymization options. Simplifies privacy regulation compliance for European market applications and user data management.

laravel-skeleton.php

Laravel skeleton template

Production-ready Laravel application starter featuring modern architecture, authentication, Tailwind CSS, Livewire, testing, code quality tooling, and scalable development conventions.