public function postDelete($group, $key) { if (!in_array($group, $this->manager->getConfig('exclude_groups')) && $this->manager->getConfig('delete_enabled')) { Translation::where('group', $group)->where('key', $key)->delete(); return ['status' => 'ok']; } }
public function removeLocale($locale) { if (!$locale) { return false; } $this->ignoreLocales = array_merge($this->ignoreLocales, [$locale]); $this->saveIgnoredLocales(); $this->ignoreLocales = $this->getIgnoredLocales(); Translation::where('locale', $locale)->delete(); }