nalingia/nova-total-records-metric
最新稳定版本:1.0.1
Composer 安装命令:
composer require nalingia/nova-total-records-metric
包简介
A Laravel Nova card.
README 文档
README
This package provides a metric to show how many records exist for a model.
Installation
composer require nalingia/nova-total-records-metric
Usage
Use the trait HasTotal in your metric class and use the total method.
use Nalingia\TotalRecords\HasTotal; class TotalUsers extends Value { use HasTotal; /** * Calculate the value of the metric. * * @param \Laravel\Nova\Http\Requests\NovaRequest $request * @return mixed */ public function calculate(NovaRequest $request) { return $this->total($request, User::class); } }
统计信息
- 总下载量: 9.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-25