*. 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.