Skip to content

Commit 7144688

Browse files
Update src/Middleware.php
Co-authored-by: Jonathan Reinink <[email protected]>
1 parent a85fab2 commit 7144688

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Middleware.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ public function resolveValidationErrors(Request $request)
128128
return (object) [];
129129
}
130130

131-
return (object) Collection::make($request->session()->get('errors')->getBags())->map(function ($bag) {
132-
return (object) Collection::make($bag->messages())->map(function ($errors) {
131+
return (object) collect($request->session()->get('errors')->getBags())->map(function ($bag) {
132+
return (object) collect($bag->messages())->map(function ($errors) {
133133
return $errors[0];
134134
})->toArray();
135135
})->pipe(function ($bags) {

0 commit comments

Comments
 (0)