filament-locations
A database of countries, cities, area, languages, currenacy with json base and database base for FilamentPHP
Extends filament
composer require tomatophp/filament-locations- cities-list
- country-list
- filamentphp
- filamentphp-plugin
- location
- locations-database
- world-countries-data
Readme

Filament Locations
A database of countries, cities, area, languages, currenacy with json base and database base for FilamentPHP
Version Compatibility
| Plugin | Filament | Laravel | PHP |
|---|---|---|---|
| 5.x | 5.x | 12.x - 13.x | 8.2+ |
| 4.x | 4.x | 11.x - 12.x | 8.2+ |
| 2.x | 3.x | 10.x - 11.x | 8.1+ |
Screenshots

Installation
The package uses Filament Settings Hub for the location settings page, so install it first if it is not installed yet (php artisan filament-settings-hub:install).
after install your package please run this command
finally reigster the plugin on /app/Providers/Filament/AdminPanelProvider.php
Disable Setting Hub
to disable the setting hub you can use this method
Disable Resources
to disable the resources you can use this method
Use Database Driver
to use database driver or if you don't have "sqlite" on your app, you can change the driver on config to "database" first publish the config
after that go to config/filament-locations.php and change the driver to "database"
now you need to run migration
now load the data to seeder
and the full data will be migrated to your database
Use Custom JSON Files
if you like to use your json data files it's easy you can just change the path of json on your config file with the matched json schema
Currency Helper
we have ready to use helper to convert the money amount to the currency symbol
Publish Assets
you can publish config file by use this command
you can publish views file by use this command
you can publish languages file by use this command
you can publish migrations file by use this command
Other Filament Packages
Checkout our Awesome TomatoPHP