From 1a82a1101e0104bfe73336c246d7c165a26c7df5 Mon Sep 17 00:00:00 2001 From: Venelin Iliev Date: Mon, 27 Jun 2016 17:22:43 +0300 Subject: [PATCH] path fix --- src/ModulesServiceProvider.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ModulesServiceProvider.php b/src/ModulesServiceProvider.php index b08129dc..b0118d7d 100644 --- a/src/ModulesServiceProvider.php +++ b/src/ModulesServiceProvider.php @@ -20,9 +20,11 @@ public function boot() __DIR__.'/../config/modules.php' => config_path('modules.php'), ], 'config'); - $this->publishes([ - __DIR__.'/../resources/stubs/' => config('modules.custom_stubs'), - ], 'stubs'); + if(config('modules.custom_stubs')){ + $this->publishes([ + __DIR__.'/../resources/stubs/' => config('modules.custom_stubs'), + ], 'stubs'); + } $modules = $this->app['modules'];