xiaohuilam/laravel-admin-select2

This package is abandoned and no longer maintained. The author suggests using the dcat/laravel-admin package instead.

Laravel-admin select2

v1.2.7 2020-11-13 04:43 UTC

README

travis.svg version.svg issues-open.svg install-count.svg license.svg

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

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

paypal

LICENSE

Open source under MIT LICENSE.