diff --git a/src/WatsonTranslateServiceProvider.php b/src/WatsonTranslateServiceProvider.php index c896ee4..a335dc7 100644 --- a/src/WatsonTranslateServiceProvider.php +++ b/src/WatsonTranslateServiceProvider.php @@ -15,13 +15,6 @@ */ class WatsonTranslateServiceProvider extends ServiceProvider { - /** - * Define the config path we are using for the Package - * - * @var string - */ - protected $configPath = __DIR__.'/config/watson-translate.php'; - /** * Define all Facades here * @@ -40,7 +33,7 @@ public function boot() { //Publish config file $this->publishes([ - $this->configPath => config_path('watson-translate.php') + __DIR__.'/config/watson-translate.php' => config_path('watson-translate.php') ], 'config'); } @@ -52,7 +45,7 @@ public function boot() public function register() { //Merge config file - $this->mergeConfigFrom($this->configPath, 'watson-translate'); + $this->mergeConfigFrom(__DIR__.'/config/watson-translate.php', 'watson-translate'); //Register Bindings $this->registerBinding(); //Add Facades to the Translator service