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-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-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-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.