Mpociot\CaptainHook\CaptainHookServiceProvider::getWebhooks PHP Метод

getWebhooks() публичный Метод

public getWebhooks ( ) : Collection
Результат Illuminate\Support\Collection
    public function getWebhooks()
    {
        if (!$this->getCache()->has(Webhook::CACHE_KEY)) {
            $this->getCache()->rememberForever(Webhook::CACHE_KEY, function () {
                return Webhook::all();
            });
        }
        return collect($this->getCache()->get(Webhook::CACHE_KEY));
    }