Skip to content

Commit

Permalink
Lumen compatibility: config_path
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Dec 12, 2017
1 parent 6b69a81 commit a33bdcf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

/**
Expand Down

0 comments on commit a33bdcf

Please sign in to comment.