Skip to content

Commit fc7aca1

Browse files
committed
Allow the database path to be specified using the DB_PARALLEL_DATABASE environment variable
1 parent f2b5743 commit fc7aca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParallelServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function register()
1313
config([
1414
'database.connections.laravel-parallel' => [
1515
'driver' => 'sqlite',
16-
'database' => database_path('laravel-parallel.sqlite'),
16+
'database' => \env('DB_PARALLEL_DATABASE', database_path('laravel-parallel.sqlite')),
1717
'prefix' => '',
1818
'foreign_key_constraints' => true,
1919
],

0 commit comments

Comments
 (0)