Mpociot\CaptainHook\Webhook::boot PHP Метод

boot() публичный статический Метод

Boot the model Whenever a new Webhook get's created the cache get's cleared.
public static boot ( )
    public static function boot()
    {
        parent::boot();
        static::created(function ($results) {
            Cache::forget(self::CACHE_KEY);
        });
        static::updated(function ($results) {
            Cache::forget(self::CACHE_KEY);
        });
        static::deleted(function ($results) {
            Cache::forget(self::CACHE_KEY);
        });
    }