We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fcec88 commit 69fd9e4Copy full SHA for 69fd9e4
app/Livewire/Project/EditProject.php
@@ -154,7 +154,7 @@ public function save()
154
$validator = Validator::make($this->getValues(), $this->rules());
155
$filtered = collect($validator->validate());
156
$filteredMeta = $filtered->except('posts')->toArray();
157
- $filteredPosts = $filtered->get('posts');
+ $filteredPosts = $filtered->get('posts') ?? [];
158
159
try {
160
DB::beginTransaction();
0 commit comments