Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

๐’‚๐’”๐’š๐’๐’„ ๐’”๐’†๐’๐’†๐’„๐’•/๐’Ž๐’๐’“๐’‘๐’‰๐‘บ๐’†๐’๐’†๐’„๐’• ๐’‡๐’๐’“ ๐’๐’‚๐’“๐’‚๐’—๐’†๐’ ๐’‚๐’…๐’Ž๐’Š๐’

License

Notifications You must be signed in to change notification settings

xiaohuilam/laravel-admin-select2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐‘ณ๐’‚๐’“๐’‚๐’—๐’†๐’-๐‘จ๐’…๐’Ž๐’Š๐’ ๐’”๐’†๐’๐’†๐’„๐’•2 ๐’‚๐’”๐’š๐’๐’„๐’‰๐’“๐’๐’๐’๐’–๐’” ๐’†๐’™๐’•๐’†๐’๐’”๐’Š๐’๐’

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.

About

๐’‚๐’”๐’š๐’๐’„ ๐’”๐’†๐’๐’†๐’„๐’•/๐’Ž๐’๐’“๐’‘๐’‰๐‘บ๐’†๐’๐’†๐’„๐’• ๐’‡๐’๐’“ ๐’๐’‚๐’“๐’‚๐’—๐’†๐’ ๐’‚๐’…๐’Ž๐’Š๐’

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •