Skip to content

Commit 589e3ab

Browse files
author
Yoke DV9
committed
allow user to to publish config file
1 parent 9e27349 commit 589e3ab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
File renamed without changes.

src/Providers/DBEncryptionServiceProvider.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public function boot()
2828
$this->bootValidators();
2929

3030
if ($this->app->runningInConsole()) {
31+
32+
$this->publishes([
33+
__DIR__.'/../config/config.php' => config_path('laravelDatabaseEncryption.php'),
34+
], 'config');
35+
3136
$this->commands([
3237
EncryptModel::class,
3338
DecryptModel::class
@@ -42,7 +47,7 @@ public function boot()
4247
*/
4348
public function register()
4449
{
45-
50+
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravelDatabaseEncryption');
4651
}
4752

4853

0 commit comments

Comments
 (0)