Skip to content

Commit 1cd2f9c

Browse files
committed
fix: builder
1 parent 526c0a9 commit 1cd2f9c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Builders/EncryptionEloquentBuilder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
namespace Quantumweb\DBEncryption\Builders;
88

99
use Illuminate\Database\Eloquent\Builder;
10+
use Illuminate\Database\Query\Builder as QueryBuilder;
1011

1112
class EncryptionEloquentBuilder extends Builder
1213
{
1314
public $salt = null;
1415

15-
public function __construct()
16+
public function __construct(QueryBuilder $query)
1617
{
17-
parent::__construct();
18+
parent::__construct($query);
1819
$this->salt = substr(hash('sha256', config('database-encryption.encryption_key')), 0, 16);
1920
}
2021

0 commit comments

Comments
 (0)