Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Selectable Laravel Package

ringlesoft/laravel-selectable

Laravel Selectable generates HTML select options directly from Laravel collections using a fluent, chainable API. Customize labels and values with strings or closures, set selected/disabled options, add data attributes, grouping, and export arrays for AJAX or SPAs.

View on GitHub
Deep Wiki
Context7
1.0.6

Security

  • Escape generated option content and attributes to prevent HTML injection.

Fixed

  • Correct selected/disabled matching for arrays of values, models, and arrays.
  • Normalize array, object, and grouped collection option data.

Improved

  • Support for Laravel 13
  • Add PHPUnit coverage, Composer test command, and Laravel compatibility CI.
  • Correct facade namespace casing, IDE helper definitions, and documentation examples.
1.0.5
  • Improved IDE Helper for better auto-completion
  • Minor bug fixes
1.0.4
  • Added support for IDs: Added support for adding id attributes to the selectable items using the withId method.

  • withDataAttribute method: Added support for passing a Closure to the withDataAttribute method to generate the data attribute value dynamically.

  • withClass method: Added support for passing an array of classes to the withClass method to add multiple classes to the selectable items.

  • Performance optimization option rendering

Full Changelog: https://github.com/ringlesoft/laravel-selectable/compare/1.0.3...1.0.4

1.0.3

Added support for non-object (array) collections

1.0.2

Introduced custom IDE helper file

1.0.1

First stable release

1.0.0

First release with basic functionality

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table