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-route-label.php

Laravel Route Label

Route Label adds a simple way to assign labels to your named Laravel routes and retrieve them anywhere in your application. With the routeLabel() helper and the @routeLink Blade directive, you can easily generate navigation links, breadcrumbs, or menus without repeating strings or relying solely on translations. Labels fall back to the route name if none is defined, keeping your code clean and consistent.

laravel-simple-datatables-and-forms.php

Laravel Simple Data Tables And Forms

Streamlined Laravel Livewire package for building dynamic, searchable data tables and feature-rich forms. Offers advanced filtering, sorting, pagination, bulk actions, and real-time validation without page refreshes. Ideal for admin panels, dashboards, CRUD interfaces, and data management applications requiring responsive user interactions.

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.