Merge pull request #18 from basakest/fixUpdatableAdapter
fix: fix a typo about updatePolicy method
This commit is contained in:
commit
be8f70909b
|
@ -235,8 +235,7 @@ class DatabaseAdapter implements DatabaseAdapterContract, BatchDatabaseAdapterCo
|
|||
$instance->first();
|
||||
$update = [];
|
||||
foreach($newPolicy as $k => $v) {
|
||||
$item = 'v' . $k;
|
||||
$update[$item] = $k;
|
||||
$update['v' . $k] = $v;
|
||||
}
|
||||
$instance->update($update);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue