首页 > 解决方案 > 望远镜在生产上有一些问题

问题描述

我在本地环境中有望远镜,它工作得很好,但是当我将它部署到生产环境中时,它实际上只是向我显示了一些图标。下面的代码是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;
        });
    }

标签: phplaraveltelescope

解决方案


推荐阅读