fix: Use loadPolicyArray instead of loadPolicyLine

This commit is contained in:
Jon 2022-01-05 23:04:23 +08:00 committed by GitHub
parent 0e5b1f2b3d
commit 4872e8f905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -93,10 +93,7 @@ class DatabaseAdapter implements DatabaseAdapterContract, BatchDatabaseAdapterCo
$rows = $this->eloquent->getAllFromCache(); $rows = $this->eloquent->getAllFromCache();
foreach ($rows as $row) { foreach ($rows as $row) {
$line = implode(', ', array_filter($row, function ($val) { $this->loadPolicyArray($this->filterRule($row), $model);
return '' != $val && !is_null($val);
}));
$this->loadPolicyLine(trim($line), $model);
} }
} }