lifeonscreen/nova-belongs-to-badge
Composer 安装命令:
composer require lifeonscreen/nova-belongs-to-badge
包简介
A Laravel Nova belongs to badge field.
README 文档
README
Simple Laravel Nova BelongTo Badge field. It extends the BelongsTo fields and displays badge on Index and Details page.
Details page
Example of badge in detail page:
Index page
Example of badge in index page:
Installation
Via Composer
$ composer require lifeonscreen/nova-belongs-to-badge
To create migrations witch adds colors to your tables you can run:
$ php artisan make:migration:add-badge-colors {tableName}
Usage
Add this to Field list:
BelongsToBadge::make('Status', 'status', Status::class),
Field will read colors from badgeBackgroundColor and badgeForegroundColor attribute.
Security
If you discover any security-related issues, please email the author instead of using the issue tracker.
Credits
License
MIT license. Please see the license file for more information.
统计信息
- 总下载量: 4.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-28

