Skip to content

Commit 12b53e3

Browse files
authored
Fix for Lumen
Lumen doesn't have `config_path` function, so when you use console for migration or seed it crash.
1 parent 2492d61 commit 12b53e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryBuilderServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class QueryBuilderServiceProvider extends ServiceProvider
88
{
99
public function boot()
1010
{
11-
if ($this->app->runningInConsole()) {
11+
if ($this->app->runningInConsole() && function_exists('config_path')) {
1212
$this->publishes([
1313
__DIR__.'/../config/query-builder.php' => config_path('query-builder.php'),
1414
], 'config');

0 commit comments

Comments
 (0)