belongsTo(PagePlus::class, 'page_id'); } protected static function booted(): void { static::saved(function ($meta) { Cache::forget(PageHelper::cacheKey('meta', $meta->page_id) . '_' . $meta->key); }); static::deleted(function ($meta) { Cache::forget(PageHelper::cacheKey('meta', $meta->page_id) . '_' . $meta->key); }); } }