public getWebhooks ( ) : |
||
return |
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));
}