Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/namet117/laravel-admin-tagsinput
tagsinput for laravel-admin
https://github.com/namet117/laravel-admin-tagsinput
Last synced: about 1 month ago
JSON representation
tagsinput for laravel-admin
- Host: GitHub
- URL: https://github.com/namet117/laravel-admin-tagsinput
- Owner: namet117
- License: mit
- Created: 2019-03-22T15:15:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-26T11:55:40.000Z (about 5 years ago)
- Last Synced: 2024-10-04T19:16:08.906Z (2 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 10
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - tagsinput - 集成 bootstrap-tagsinput 的 laravel-admin Form 扩展 (扩展包 / 字段类扩展包)
README
laravel-admin-tagsinput
======
一个集成`bootstrap-tagsinput`的`laravel-admin` `Form`扩展效果图
-
![result.png](https://github.com/namet117/images/raw/master/laravel-admin-tags/result.png)环境依赖
-
* php `>= 7`
* laravel-admin `~1.6`安装方式
-
1.使用composer安装扩展包
```shell
composer require namet/laravel-admin-tagsinput -vvv
```
2.发布静态资源
```shell
php artisan vendor:publish --tag=laravel-admin-tagsinput
```3.在控制器中使用`tagsinput`方法
```php
// app/Admin/Controllers/GoodsControllerprotected function form()
{
$form = new Form(new GoodsCate);$form->text('name', '属性名');
$form->switch('nullable', '可空')->default(1);
$form->tagsinput('values', '可选值');
return $form;
}
```LICENSE
-
MIT