{"id":13532610,"url":"https://github.com/xiaohuilam/laravel-admin-select2","last_synced_at":"2025-04-01T21:30:43.487Z","repository":{"id":57084035,"uuid":"178165826","full_name":"xiaohuilam/laravel-admin-select2","owner":"xiaohuilam","description":"𝒂𝒔𝒚𝒏𝒄 𝒔𝒆𝒍𝒆𝒄𝒕/𝒎𝒐𝒓𝒑𝒉𝑺𝒆𝒍𝒆𝒄𝒕 𝒇𝒐𝒓 𝒍𝒂𝒓𝒂𝒗𝒆𝒍 𝒂𝒅𝒎𝒊𝒏","archived":true,"fork":false,"pushed_at":"2021-08-08T13:23:15.000Z","size":205,"stargazers_count":41,"open_issues_count":3,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-02T07:16:50.658Z","etag":null,"topics":["laravel","laravel-admin","laravel-admin-extension","php","select2"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiaohuilam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://www.paypal.me/laravel"}},"created_at":"2019-03-28T09:03:53.000Z","updated_at":"2024-01-23T09:31:41.000Z","dependencies_parsed_at":"2022-08-24T14:59:09.826Z","dependency_job_id":null,"html_url":"https://github.com/xiaohuilam/laravel-admin-select2","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaohuilam%2Flaravel-admin-select2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaohuilam%2Flaravel-admin-select2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaohuilam%2Flaravel-admin-select2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaohuilam%2Flaravel-admin-select2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaohuilam","download_url":"https://codeload.github.com/xiaohuilam/laravel-admin-select2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246712925,"owners_count":20821818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","laravel-admin","laravel-admin-extension","php","select2"],"created_at":"2024-08-01T07:01:12.269Z","updated_at":"2025-04-01T21:30:43.107Z","avatar_url":"https://github.com/xiaohuilam.png","language":"PHP","funding_links":["https://www.paypal.me/laravel"],"categories":["扩展包"],"sub_categories":["字段类扩展包"],"readme":"\u003ch1 align=\"center\"\u003e𝑳𝒂𝒓𝒂𝒗𝒆𝒍-𝑨𝒅𝒎𝒊𝒏 𝒔𝒆𝒍𝒆𝒄𝒕2 𝒂𝒔𝒚𝒏𝒄𝒉𝒓𝒐𝒏𝒐𝒖𝒔 𝒆𝒙𝒕𝒆𝒏𝒔𝒊𝒐𝒏\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![travis.svg](https://img.shields.io/travis/xiaohuilam/laravel-admin-select2/master.svg)](https://travis-ci.org/xiaohuilam/laravel-admin-select2)\n[![version.svg](https://img.shields.io/packagist/vpre/xiaohuilam/laravel-admin-select2.svg)](https://packagist.org/packages/xiaohuilam/laravel-admin-select2)\n[![issues-open.svg](https://img.shields.io/github/issues/xiaohuilam/laravel-admin-select2.svg)](https://github.com/xiaohuilam/laravel-admin-select2/issues)\n[![install-count.svg](https://img.shields.io/packagist/dt/xiaohuilam/laravel-admin-select2.svg)](https://packagist.org/packages/xiaohuilam/laravel-admin-select2)\n[![license.svg](https://img.shields.io/github/license/xiaohuilam/laravel-admin-select2.svg)](LICENSE)\n\n\u003c/div\u003e\n\n*. Deprecated, please use [dcat/laravel-admin](https://github.com/jqhph/dcat-admin) instead!\n\n## About\n\n中文用户请阅读 [中文文档](README_cn.md).\n\nA asynchronous extension to implements select2 to [laravel-admin](http://github.com/z-song/laravel-admin/), including single select/multiple select/morph select.\n\nIt will send ajax query if only you trigger list option in the form.\n\n*. extends from laravel-admin's original select, multipleSelect Fields, so it's compatible with laravel-admin select field.\n\n## Installation\n```bash\ncomposer require xiaohuilam/laravel-admin-select2\n```\n\npublish assets\n```bash\nphp artisan vendor:publish --tag=laravel-admin-select2\n```\n\n## Usage\n\n- [asynchronous single select (`select`) demo](tests/Controllers/AnswerController.php#L35-L59)\n- [asynchronous multiple select (`multipleSelect`) demo](tests/Controllers/QuestionController.php#L35-L59)\n- [asynchronous morph select (`morphSelect`) demo](tests/Controllers/CommentController.php#L34-L51)\n- [asynchronous select filter (`filterSelect2`) demo](tests/Controllers/AnswerController.php#L68-L77)\n\n## Structure\n```\nsrc\n├── Form\n│   └── Field\n│       ├── Select.php           # `LaravelAdminExt\\Select2\\Form\\Field\\Select` single select class\n│       ├── MultipleSelect.php   # `LaravelAdminExt\\Select2\\Form\\Field\\MultipleSelect` multiple select class\n│       └── MorphSelect.php      # `LaravelAdminExt\\Select2\\Form\\Field\\MorphSelect` morph select class\n├── Interfaces\n│   └── MorphSelectInterface.php # `LaravelAdminExt\\Select2\\Interfaces\\MorphSelectInterface` morph select interface. must implement in every morphed models.\n├── Select2.php                  # laravel-admin extension identify file\n├── Select2ServiceProvider.php   # laravel service provider\n└── Traits                       # some multiplexing methods\n    ├── FormTrait.php\n    └── Select2Trait.php\n```\n\n## Donation\n[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.me/laravel)\n\n## LICENSE\n\nOpen source under [MIT](LICENSE) LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaohuilam%2Flaravel-admin-select2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaohuilam%2Flaravel-admin-select2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaohuilam%2Flaravel-admin-select2/lists"}