Download the PHP package jobmetric/laravel-location without Composer
On this page you can find all versions of the php package jobmetric/laravel-location. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jobmetric/laravel-location
More information about jobmetric/laravel-location
Files in jobmetric/laravel-location
Package laravel-location
Short Description This is a website location management package for Laravel that you can use in your projects.
License MIT
Homepage https://jobmetric.github.io/packages/laravel-location
Informations about the package laravel-location
Laravel Location
Location Management for Laravel. Structured. Scalable.
Laravel Location helps you model and manage geographic data in a clean, consistent way—from Countries and Provinces to Cities, Districts, Locations, Geo Areas and Addresses. It is designed to be used as a reusable package in real-world Laravel applications where location data needs to be normalized and shared across multiple models.
Why Laravel Location?
A clean hierarchy: Country → Province → City → District
Keep your geographical data normalized and queryable with a clear relational hierarchy. This makes reporting, filtering, and validation much easier across your application.
Reusable Locations, Geo Areas and Addresses
- Locations are stored as unique records (country/province/city/district combination).
- Geo Areas can reference multiple locations (non-duplicated).
- Addresses can be attached to any model (polymorphic) and are stored with a location relation.
Service-first API + Facades
Each entity is managed through a dedicated service and convenient Facades:
Country,Province,City,DistrictLocation,GeoArea,Address
This keeps controllers thin and makes the package easy to integrate and test.
Quick Start
Install via Composer:
Run migrations:
Optionally publish config/translations (if you need to override defaults):
Usage (Examples)
Store a country using the Facade:
Attach address/geo areas to your models using traits:
Documentation
Documentation for Laravel Location is available here:
The documentation includes:
- Getting Started - Installation and configuration
- Traits -
HasAddress,HasGeoArea,HasLocation - Services & Facades - Complete API reference
- Requests & Resources - Validation and API responses
- Events - Hook into lifecycle events
- Testing - How to run package tests and expected patterns
Contributing
Thank you for participating in laravel-location. A contribution guide can be found here.
License
The laravel-location is open-sourced software licensed under the MIT license. See License File for more information.
All versions of laravel-location with dependencies
ext-libxml Version *
ext-simplexml Version *
laravel/framework Version >=9.19
spatie/laravel-query-builder Version ^6.3
jobmetric/laravel-package-core Version ^1.37
jobmetric/laravel-translation Version ^3.5
jobmetric/laravel-event-system Version ^2.7