Skip to content

Commit

Permalink
Merge pull request #435 from rudashi/patch-2
Browse files Browse the repository at this point in the history
Fix for Lumen
  • Loading branch information
freekmurze authored Feb 26, 2020
2 parents 2492d61 + 12b53e3 commit 95737cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryBuilderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class QueryBuilderServiceProvider extends ServiceProvider
{
public function boot()
{
if ($this->app->runningInConsole()) {
if ($this->app->runningInConsole() && function_exists('config_path')) {
$this->publishes([
__DIR__.'/../config/query-builder.php' => config_path('query-builder.php'),
], 'config');
Expand Down

0 comments on commit 95737cd

Please sign in to comment.