protected function insertRelationData($from, $to, $type, array $keys) { $config = Config::table($from); $content = $config->get(); $content->relations->{$to} = array('type' => $type, 'keys' => $keys); $config->put($content); }