xuma/sideselect

Side-select package

v0.0.4 2021-04-18 00:36 UTC

This package is auto-updated.

Last update: 2024-11-29 20:35:19 UTC


README

Side select is a Livewire component which is inspired by Vuejs Sideselect

Sideselect

Installation

composer require xuma/sideselect

Usage

<livewire:side-select name="user_name" model="\App\Models\User" tracker="id" label="name"/>

Component creates two hidden inputs which you can use on your forms.

<input type="hidden" name="user_name_selected" value="1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21">
<input type="hidden" name="user_name_not_selected" value="2,3,4,5">