salemaljebaly/filament-map-picker
latitude/longitude fields for persistence. This simplifies database schema changes.latitude/longitude fields already in your schema, or will this require migrations?spatie/laravel-geocoder for broader functionality?latitude/longitude columns to the target database table (if not present).composer require filament/filament:"^5").composer require salemaljebaly/filament-map-picker
php artisan vendor:publish --tag=filament-map-picker-config # Optional
MapPicker in Filament forms.MapPicker::make('location')
->latlngFields('latitude', 'longitude')
->searchable()
->collapsibleSearch();
latitude/longitude fields are lightweight, but ensure your DB can handle geospatial queries (e.g., distance calculations) if needed.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| OpenStreetMap downtime | Map unavailability | Implement a static fallback tile or alert. |
| Leaflet JS errors | Broken map rendering | Wrap in a try/catch with user-friendly UI. |
| Filament/Livewire session conflicts | Map state corruption | Test with multiple concurrent users. |
| Database schema mismatch | Form submission errors | Use migrations with backward-compatible defaults. |
| Package abandonment | Unpatched vulnerabilities | Fork the repo or switch to a maintained alternative. |
How can I help you explore Laravel packages today?