From a33bdcf5d496e6515da27da037aae269e70d408c Mon Sep 17 00:00:00 2001 From: KyleKatarn Date: Tue, 12 Dec 2017 18:31:18 +0100 Subject: [PATCH] Lumen compatibility: config_path --- src/ServiceProvider.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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'); + } } /**