cocosmos/filament-quick-add-select
Add a quickAdd() method to any Filament Select with a relationship so users can instantly create and select new options right from the search dropdown. No modals, no interruptions—just type, click "+ Add", and keep working. Supports multiple selects and custom labels.
Select that requires "search → miss → open modal → fill → submit → re-find → select" adds a multi-step detour to high-frequency data entry. This package collapses that to one click. It's a cheap, low-risk way to test whether friction in operator workflows is actually costing us throughput, before committing to a larger internal admin redesign.->quickAdd() on an existing Filament Select replaces what would otherwise be a custom field component, internal forked Select, or a sprint of front-end work. The decision is essentially: adopt a 200-line MIT macro now, or defer the feature indefinitely because it never wins a prioritization slot.createOptionForm() modal (anything with required fields, codes, owners, effective dates, financial or regulatory attributes). Treat that as a per-field classification exercise, not a global toggle.enabled: closure (auth()->user()->can('create', Category::class)) means inline creation can be gated by existing Filament policies rather than a parallel permission system. That supports a decision to roll out to a pilot role/team first without new authorization plumbing.Adopt when:
Select), so that's tractable — but it must be a conscious choice, not an assumption of vendor support.Look elsewhere (or build) when:
createOptionForm() plus policy conversation, not this package.For executives — one paragraph: Our Filament admin panel makes operators stop, open a modal, and lose their place every time they need a lookup value that doesn't exist yet. This is a free, MIT-licensed, one-line extension that lets them create and select that value inline, in the same dropdown, with no interruption. There is no schema change, no data migration, and no vendor commitment — the entire change is a method call we can remove in minutes. Total cost is an afternoon of engineering plus a policy check on which lookups are allowed to be created inline. I'd like to run it for four weeks on a pilot team and decide on expansion based on time-to-complete and count of inline creations, not on opinion.
For engineering — the ask: Add cocosmos/filament-quick-add-select and apply ->quickAdd() to a short, reviewed allowlist of relationship selects. Gate each with enabled: fn () => auth()->user()->can('create', Model::class) so it inherits existing Filament policies. Pin the version and vendor it, because the package is a single-maintainer macro over Filament internals with 18 stars and we should assume we own the fix. Wrap adoption behind our own form-builder helper so a future Filament major upgrade or a switch to a native implementation is a one-file change. Add a regression test asserting that quick-add fields still respect policies and that created records are title-only by design.
Anticipated objections and the answers:
How can I help you explore Laravel packages today?