Awesome
<h1 align="center">π³ππππππ-π¨π πππ ππππππ2 ππππππππππππ πππππππππ</h1> <div align="center"> </div>*. Deprecated, please use dcat/laravel-admin instead!
About
δΈζη¨ζ·θ―·ι θ―» δΈζζζ‘£.
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.
Installation
composer require xiaohuilam/laravel-admin-select2
publish assets
php artisan vendor:publish --tag=laravel-admin-select2
Usage
- asynchronous single select (
select
) demo - asynchronous multiple select (
multipleSelect
) demo - asynchronous morph select (
morphSelect
) demo - asynchronous select filter (
filterSelect2
) demo
Structure
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
Donation
LICENSE
Open source under MIT LICENSE.