From 0ad9e5a5f7005bdc8c45513fc1a5ba333c4f587f Mon Sep 17 00:00:00 2001 From: Fadion Dashi Date: Wed, 4 Feb 2015 00:30:04 +0100 Subject: [PATCH] Remove config namespace --- src/Fadion/Bouncy/BouncyTrait.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Fadion/Bouncy/BouncyTrait.php b/src/Fadion/Bouncy/BouncyTrait.php index 52f0ba6..a9f32e0 100644 --- a/src/Fadion/Bouncy/BouncyTrait.php +++ b/src/Fadion/Bouncy/BouncyTrait.php @@ -373,7 +373,7 @@ public function indexWithVersion($version) */ public function save(Array $options = array()) { - if (Config::get('bouncy::config.auto_index')) { + if (Config::get('bouncy.auto_index')) { $params = $this->basicElasticParams(true); // When creating a model, Eloquent still @@ -405,7 +405,7 @@ public function save(Array $options = array()) */ public function delete() { - if (Config::get('bouncy::config.auto_index')) { + if (Config::get('bouncy.auto_index')) { $this->removeIndex(); } @@ -423,7 +423,7 @@ public function getIndex() return $this->indexName; } - return Config::get('bouncy::config.index'); + return Config::get('bouncy.index'); } /** @@ -560,7 +560,7 @@ protected function basicElasticParams($withId = false) */ protected function getElasticClient() { - return new ElasticSearch(Config::get('bouncy::elasticsearch')); + return new ElasticSearch(Config::get('elasticsearch')); } -} \ No newline at end of file +}