laravel-admin-ext/china-distpicker
Laravel Admin extension that adds a cascading China province, city, and district picker to forms. It provides an easy-to-use regional selector for Chinese addresses, with built-in province, city, and district data and seamless integration into laravel-admin.
Architecture fit. laravel-admin-ext/china-distpicker is not a general-purpose Laravel package — it is a form-field extension for Encore's laravel-admin admin panel. It registers a distpicker field on the Form builder that renders a three-level cascading province → city → district selector, backed by a bundled static JS dataset. It introduces no service provider of consequence, no database schema, no API, and no server-side domain model. That makes it a UI concern only: it governs how an operator enters an address, not how the address is stored, validated, or used.
Integration feasibility. Binary and stack-dependent:
| Incumbent admin stack | Feasibility |
|---|---|
| laravel-admin 1.8+, Laravel 5.5–9, PHP 7.4–8.1 | High — composer require plus one $form->distpicker([...]) line |
| laravel-admin via community Laravel 10/11 fork | Medium — needs verification against the fork |
| Filament / Nova / Livewire / Inertia / custom SPA | Low — PHP wrapper is inert; only the JS dataset is reusable |
Technical risk. Ranked:
Key questions for the maintainer (or our own fork):
How can I help you explore Laravel packages today?