Skip to content

Commit 0756c9c

Browse files
committed
feat: publish config
1 parent 3d44dbf commit 0756c9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/SQLLoaderServiceProvider.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@ class SQLLoaderServiceProvider extends ServiceProvider
99
public function boot(): void
1010
{
1111
$this->mergeConfigFrom(__DIR__.'/config/sql-loader.php', 'sql-loader');
12+
13+
if ($this->app->runningInConsole()) {
14+
$this->publishes([
15+
__DIR__.'/config/sql-loader.php' => config_path('sql-loader.php'),
16+
], 'config');
17+
}
1218
}
1319
}

0 commit comments

Comments
 (0)