ringlesoft/laravel-selectable
Generate HTML tags from Laravel collections with a simple, flexible API. Choose label/value fields (strings or closures), set selected/disabled items, add classes/data attributes, group options, and export selectable arrays for AJAX/SPAs.
<select> options, accelerating feature development for forms, filters, and admin panels. Aligns with roadmap goals to improve backend maintainability.toSelectItems()), supporting modern frontend architectures (React, Vue) without backend refactoring.<select> elements (e.g., >50% of forms).For Executives: "This package cuts the time to build and maintain dropdowns in our Laravel apps by 30%, reducing backend dev costs without sacrificing flexibility. It’s a lightweight, open-source alternative to proprietary tools, with MIT licensing and active maintenance. Ideal for scaling our admin panels, APIs, and forms—key to [Product X]’s roadmap."
For Engineering (Backend):
*"Laravel-Selectable replaces manual <option> loops with fluent, chainable methods—think toSelectable()->withLabel()->withDisabled()—and adds IDE helpers for faster coding. Perfect for:
toSelectItems() for SPAs).For Engineering (Frontend):
*"Need select data for your React/Vue app? This package generates clean JSON via toSelectItems(), so you avoid manual backend API work. Example output:
[{ "label": "Admin", "value": "1", "disabled": false }]
Works with Laravel’s collections—just pass the data to your frontend. No extra endpoints needed!"*
How can I help you explore Laravel packages today?