amabk/livewire-search-select
A Livewire component that adds a searchable, filterable select dropdown to Laravel forms. Query options as you type, keep selections synced with Livewire state, and drop it into any Blade view. A lightweight alternative to bulky select libraries.
Install the package with Composer and confirm the service provider is auto-discovered:
composer require amabk/livewire-search-select
Start with the README — v1.2.3 explicitly refreshes it, so it is the most current source for prop names and component signatures. Check for a publishable config or asset tag (php artisan vendor:publish --tag=...) if you need to override default styling or search behaviour.
Your first use case should be the one the package exists for: replacing a <select> with hundreds of options with a searchable, Livewire-bound dropdown. In a form component, bind the component to a public property via wire:model (or the package's documented model binding), pass the option list in, and verify two things end-to-end before building further: that selecting an item updates the Livewire property, and that validation errors render against the component as they would on a native select.
<select> inside an existing Livewire form component. Keep validation rules on the parent component ('selectedId' => 'required|exists:...') rather than duplicating them in the view.updated hook, clearing the child value, and reloading its options. Guard against the child firing updated on clear and re-triggering the parent.v1.2.2...v1.2.3 on GitHub or skim the merged PRs; do not assume the patch is behaviour-neutral in the search/filter path..live on the search input is usually what you want; .defer on the selected value reduces requests but delays validation feedback — pick deliberately.wire:key. When looping several search-selects, give each a stable wire:key tied to the field name, otherwise Livewire may reuse DOM and show the wrong dropdown's state.z-index and overflow on ancestors before blaming the package.where clause.composer.json until you have read the diff, then run your form tests on upgrade.How can I help you explore Laravel packages today?