diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index bf6b0ff..b20c663 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -151,9 +151,11 @@ public function bootLaravel4() */ public function bootLaravel5() { - $this->publishes(array( - __DIR__ . '/../config/config.php' => config_path('laravel-pug.php'), - ), 'laravel-pug'); + if (function_exists('config_path')) { + $this->publishes(array( + __DIR__ . '/../config/config.php' => config_path('laravel-pug.php'), + ), 'laravel-pug'); + } } /**