php - 望远镜在生产上有一些问题
问题描述
我在本地环境中有望远镜,它工作得很好,但是当我将它部署到生产环境中时,它实际上只是向我显示了一些图标。下面的代码是register
方法TelescopeServiceProvider
public function register()
{
// Telescope::night();
$this->hideSensitiveRequestDetails();
Telescope::filter(function (IncomingEntry $entry) {
if ($this->app->environment('local')) {
return true;
}
return $entry->isReportableException() ||
$entry->isFailedRequest() ||
$entry->isFailedJob() ||
$entry->isScheduledTask() ||
$entry->hasMonitoredTag() ||
$entry->type === EntryType::LOG;
});
}
解决方案
推荐阅读
- java - 如何在 Apache Camel 3 中将 XML 转换为 JSON
- django - 如何在表单中获取表单字段值并发送邮件
- angular - 提供刷新令牌后重新发起最后一次失败的请求
- sql-server-2017 - SQL Server 2017 从同一表中的另一列添加具有默认值的新列
- java - 为什么jvm中的“从空间”和“到空间”不相等
- database - 哪些服务器是公共的,哪些是私有的 使用哪些服务器 它是如何工作的
- javascript - 如何将类名从父组件传递给子组件
- python - 如何使用 BeautifulSoup 选择标签周围的上下文词/字符?
- bigcommerce - 增加模板主题上最近查看项目的最大数量
- reactjs - 循环通过 API 拆分数据