lara-zeus / filament-locationpickr-field
Location picker field for Filament Php using Google Maps
Package info
github.com/lara-zeus/filament-locationpickr-field
Language:JavaScript
pkg:composer/lara-zeus/filament-locationpickr-field
Requires
- php: ^8.1
- filament/forms: ^5.0
- spatie/laravel-package-tools: ^1.13.5
Requires (Dev)
- pestphp/pest: ^2.10
README
This package provides just a simplified location picker field within Filament using Google Maps based on the excellent work of Hugh Messenger.
Installation
You can install the package into a Laravel app that uses Filament via composer::
composer require lara-zeus/filament-locationpickr-field
Filament V3 & V2 - you can use https://github.com/arbermustafa/filament-locationpickr-field repository.
You can publish the config file with:
php artisan vendor:publish --tag=filament-locationpickr-field-config
The config file contains default global customization options for map rendering, like: api key, default location, etc.
Optionally, you can publish the view using:
php artisan vendor:publish --tag=filament-locationpickr-field-views
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
If you want to contribute to this package, you may want to test it in a real Filament project:
- Fork this repository to your Github account.
- Create a Filament app locally.
- Clone your fork in your Filament app root directoy.
- In the
/filament-locationpickr-fielddirectory, create a branch for your fix/improvement, e.g.fix/pickr-field.
Install the package in your app's composer.json:
"require": { "lara-zeus/filament-locationpickr-field": "dev-fix/pickr-field as dev-main", }, "repositories": [ { "type": "path", "url": "./filament-locationpickr-field" } ]
Now run composer update.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
Versions
| Plugin Version | Filament Version |
|---|---|
v1.x |
v2.x |
v2.x |
v3.x |
v3.x |
v3.x |