Barryvdh\TranslationManager\Controller::postDelete PHP Метод

postDelete() публичный Метод

public postDelete ( )
    public function postDelete()
    {
        $groups = func_get_args();
        $key = array_pop($groups);
        // the last arg is the key
        $group = implode('/', $groups);
        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'];
        }
    }