From 0d333c622835bc550e6248c408f437b2fd6558d0 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 10 Aug 2015 20:23:56 +0200 Subject: [PATCH] Check for config_path (Lumen) For #202 --- src/IdeHelperServiceProvider.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/IdeHelperServiceProvider.php b/src/IdeHelperServiceProvider.php index 17d94d7..e80b61e 100644 --- a/src/IdeHelperServiceProvider.php +++ b/src/IdeHelperServiceProvider.php @@ -36,7 +36,12 @@ class IdeHelperServiceProvider extends ServiceProvider $this->loadViewsFrom($viewPath, 'ide-helper'); $configPath = __DIR__ . '/../config/ide-helper.php'; - $this->publishes([$configPath => config_path('ide-helper.php')], 'config'); + if (function_exists('config_path')) { + $publishPath = config_path('ide-helper.php'); + } else { + $publishPath = base_path('config/ide-helper.php'); + } + $this->publishes([$configPath => $publishPath], 'config'); } /**