๐ณ๐๐๐๐๐๐-๐จ๐ ๐๐๐ ๐๐๐๐๐๐2 ๐๐๐๐๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐
*. Deprecated, please use dcat/laravel-admin instead!
ไธญๆ็จๆท่ฏท้ ่ฏป ไธญๆๆๆกฃ.
A asynchronous extension to implements select2 to laravel-admin, including single select/multiple select/morph select.
It will send ajax query if only you trigger list option in the form.
*. extends from laravel-admin's original select, multipleSelect Fields, so it's compatible with laravel-admin select field.
composer require xiaohuilam/laravel-admin-select2
publish assets
php artisan vendor:publish --tag=laravel-admin-select2
- asynchronous single select (
select
) demo - asynchronous multiple select (
multipleSelect
) demo - asynchronous morph select (
morphSelect
) demo - asynchronous select filter (
filterSelect2
) demo
src
โโโ Form
โ โโโ Field
โ โโโ Select.php # `LaravelAdminExt\Select2\Form\Field\Select` single select class
โ โโโ MultipleSelect.php # `LaravelAdminExt\Select2\Form\Field\MultipleSelect` multiple select class
โ โโโ MorphSelect.php # `LaravelAdminExt\Select2\Form\Field\MorphSelect` morph select class
โโโ Interfaces
โ โโโ MorphSelectInterface.php # `LaravelAdminExt\Select2\Interfaces\MorphSelectInterface` morph select interface. must implement in every morphed models.
โโโ Select2.php # laravel-admin extension identify file
โโโ Select2ServiceProvider.php # laravel service provider
โโโ Traits # some multiplexing methods
โโโ FormTrait.php
โโโ Select2Trait.php
Open source under MIT LICENSE.