public function getDelete($group, $key) { $g = Group::find($group); if (!in_array($g->id, $this->manager->getConfig('exclude_groups')) && $this->manager->getConfig('delete_enabled')) { Translation::where('group_id', $g->id)->where('key', $key)->delete(); return back()->with('successDelete', $key); } }
public function truncateGroups() { Group::truncate(); }