Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit e2bdad5

Browse files
committed
Revert a7c2919 because it breaks unfilled checkboxes
1 parent 0160f17 commit e2bdad5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Components/Form.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Illuminate\Database\Eloquent\Model;
77
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
88
use Illuminate\Database\Eloquent\Relations\MorphMany;
9+
use Illuminate\Support\Arr;
910
use Illuminate\Support\Collection;
1011
use Illuminate\Support\Fluent;
1112
use Illuminate\Support\Str;
@@ -145,6 +146,10 @@ private function guardedData(): ?object
145146
$guardedData = [];
146147

147148
foreach (static::allowedAttributesSorted() as $attribute) {
149+
if (!Arr::has($rawData, $attribute)) {
150+
continue;
151+
}
152+
148153
data_set($guardedData, $attribute, data_get($rawData, $attribute));
149154
}
150155

0 commit comments

Comments
 (0)