PHPackages                             pardalsalcap/linter-locations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pardalsalcap/linter-locations

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pardalsalcap/linter-locations
=============================

Add on to Linter to manage Geolocations

v5.0.0(1mo ago)012MITPHPPHP ^8.2CI passing

Since Nov 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/pardalsalcap/linter-locations)[ Packagist](https://packagist.org/packages/pardalsalcap/linter-locations)[ Docs](https://github.com/pardalsalcap/linter-locations)[ RSS](/packages/pardalsalcap-linter-locations/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (22)Versions (7)Used By (0)

Linter Locations
================

[](#linter-locations)

`pardalsalcap/linter-locations` adds a geographic data model and Filament resources for continents, countries, communities, states, cities, and addresses.

It is designed to work as an add-on for Laravel applications that already use Filament.

Compatibility
-------------

[](#compatibility)

- PHP `^8.2`
- Laravel `^11.0|^12.0`
- Filament `^5.0`

Installation
------------

[](#installation)

Install the package:

```
composer require pardalsalcap/linter-locations
```

Publish and run the migrations:

```
php artisan vendor:publish --tag="linter-locations-migrations"
php artisan migrate
```

Publish the config file if you want to adjust locales or search behavior:

```
php artisan vendor:publish --tag="linter-locations-config"
```

Default config:

```
return [
    'available_locales' => [
        'ca' => 'Català',
        'es' => 'Castellano',
        'en' => 'English',
    ],
    'use_scoped_search' => true,
];
```

Install Command
---------------

[](#install-command)

The package ships with an install command:

```
php artisan linter-locations:install
```

The command asks for confirmation before each optional step:

1. Populate the database with starter geographic data.
2. Create the Filament resource wrappers inside your application.

If you confirm the resource step, the command creates these files in `app/Filament/Resources` when they do not already exist:

- `ContinentResource.php`
- `CountryResource.php`
- `CommunityResource.php`
- `StateResource.php`
- `CityResource.php`
- `AddressResource.php`

The generated classes extend the package resources, so you can start using them immediately and still customize them later in your app.

Filament Resources
------------------

[](#filament-resources)

The package provides base Filament resources for:

- Continents
- Countries
- Communities
- States
- Cities
- Addresses

The generated wrapper classes are intentionally minimal:

```
