From 35f2e3190b6481ead5e9ee9637b9ed3bb432a88b Mon Sep 17 00:00:00 2001 From: Rathes Sachchithananthan Date: Thu, 2 Nov 2017 11:35:41 +0100 Subject: [PATCH] Fixes that config helper does not working in ServiceProvider --- src/MozhiServiceProvider.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/MozhiServiceProvider.php b/src/MozhiServiceProvider.php index 5745daa..4f88abc 100644 --- a/src/MozhiServiceProvider.php +++ b/src/MozhiServiceProvider.php @@ -3,7 +3,6 @@ namespace Aheenam\Mozhi; use Illuminate\Support\ServiceProvider; -use League\CommonMark\CommonMarkConverter; class MozhiServiceProvider extends ServiceProvider { @@ -27,7 +26,7 @@ public function boot() ]); // set the themes views - $this->loadViewsFrom(config('theme_path'), 'theme'); + $this->loadViewsFrom(base_path($this->app['config']['mozhi.theme_path']), 'theme'); // load the routes $this->loadRoutesFrom(__DIR__ . '/routes/web.php');