简体   繁体   English

如何更改 Laravel Nova 指标的结束日期?

[英]How can I change a Laravel Nova metric's ending date?

By default, all Laravel Nova Metrics end at the current time.默认情况下,所有 Laravel Nova 指标都在当前时间结束。 For instance, if I wanted to end it a day before so that the metric shows yesterday's results without showing today's, this doesn't appear to be possible.例如,如果我想在前一天结束它以便指标显示昨天的结果而不显示今天的结果,这似乎是不可能的。 As of now, it will show both days.截至目前,它将显示两天。 How can I accomplish showing only yesterday?我怎样才能做到只显示昨天?

我能够通过扩展趋势类并手动将结束日期更改为最后完成的月份而不是当前日期来实现这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM