Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiaohuilam/laravel-admin-select2
๐๐๐๐๐ ๐๐๐๐๐๐/๐๐๐๐๐๐บ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐
๐๐๐
https://github.com/xiaohuilam/laravel-admin-select2
laravel laravel-admin laravel-admin-extension php select2
Last synced: about 1 month ago
JSON representation
๐๐๐๐๐ ๐๐๐๐๐๐/๐๐๐๐๐๐บ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐ ๐๐ ๐๐๐
- Host: GitHub
- URL: https://github.com/xiaohuilam/laravel-admin-select2
- Owner: xiaohuilam
- License: mit
- Archived: true
- Created: 2019-03-28T09:03:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-08T13:23:15.000Z (over 3 years ago)
- Last Synced: 2024-09-17T23:59:23.641Z (3 months ago)
- Topics: laravel, laravel-admin, laravel-admin-extension, php, select2
- Language: PHP
- Homepage:
- Size: 200 KB
- Stars: 41
- Watchers: 5
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - select2 - Laravel-Admin select2 ๆไปถ (ๆฉๅฑๅ / ๅญๆฎต็ฑปๆฉๅฑๅ )
README
๐ณ๐๐๐๐๐๐-๐จ๐ ๐๐๐ ๐๐๐๐๐๐2 ๐๐๐๐๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐
[![travis.svg](https://img.shields.io/travis/xiaohuilam/laravel-admin-select2/master.svg)](https://travis-ci.org/xiaohuilam/laravel-admin-select2)
[![version.svg](https://img.shields.io/packagist/vpre/xiaohuilam/laravel-admin-select2.svg)](https://packagist.org/packages/xiaohuilam/laravel-admin-select2)
[![issues-open.svg](https://img.shields.io/github/issues/xiaohuilam/laravel-admin-select2.svg)](https://github.com/xiaohuilam/laravel-admin-select2/issues)
[![install-count.svg](https://img.shields.io/packagist/dt/xiaohuilam/laravel-admin-select2.svg)](https://packagist.org/packages/xiaohuilam/laravel-admin-select2)
[![license.svg](https://img.shields.io/github/license/xiaohuilam/laravel-admin-select2.svg)](LICENSE)*. Deprecated, please use [dcat/laravel-admin](https://github.com/jqhph/dcat-admin) instead!
## About
ไธญๆ็จๆท่ฏท้ ่ฏป [ไธญๆๆๆกฃ](README_cn.md).
A asynchronous extension to implements select2 to [laravel-admin](http://github.com/z-song/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
```bash
composer require xiaohuilam/laravel-admin-select2
```publish assets
```bash
php artisan vendor:publish --tag=laravel-admin-select2
```## Usage
- [asynchronous single select (`select`) demo](tests/Controllers/AnswerController.php#L35-L59)
- [asynchronous multiple select (`multipleSelect`) demo](tests/Controllers/QuestionController.php#L35-L59)
- [asynchronous morph select (`morphSelect`) demo](tests/Controllers/CommentController.php#L34-L51)
- [asynchronous select filter (`filterSelect2`) demo](tests/Controllers/AnswerController.php#L68-L77)## 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](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.me/laravel)## LICENSE
Open source under [MIT](LICENSE) LICENSE.