Skip to content

Commit

Permalink
fix remove excepted columns in fillable
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Mar 8, 2023
1 parent acca915 commit b3a724f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Traits/QueryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ private function addDBColumnsToString(array $itemsDB)
}

foreach ($excepts as $except) {
if (Arr::exists($itemsDB, $except)) {
Arr::forget($itemsDB, $except);
}
$key = array_search($except, $itemsDB, true);
unset($itemsDB[$key]);
}

foreach ($itemsDB as $db) {
$columns .= "'$db', ";
}
Expand Down

0 comments on commit b3a724f

Please sign in to comment.