Barryvdh\TranslationManager\Manager::getConfig PHP Method

getConfig() public method

public getConfig ( $key = null )
    public function getConfig($key = null)
    {
        if ($key == null) {
            return $this->config;
        } else {
            return $this->config[$key];
        }
    }

Usage Example

 public function postDelete($group, $sub_group = null, $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'];
     }
 }
All Usage Examples Of Barryvdh\TranslationManager\Manager::getConfig