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