Skip to content

Commit 241f3dc

Browse files
martinternbarryvdh
authored andcommitted
Update ValidatesForms.php (#29)
throwValidationException() removed from Laravel 5.5 ValidatesRequests Trait
1 parent a478f27 commit 241f3dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ValidatesForms.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ public function validateForm(Form $form, Request $request, array $rules, array $
2424
$data = $form->getName() ? $request->offsetGet($form->getName()) : $request->all();
2525
$validator = $this->getValidationFactory()->make($data, $rules, $messages);
2626

27-
if ($validator->fails()) {
28-
$this->throwValidationException($request, $validator);
29-
}
27+
$validator->validate();
3028
}
3129
}

0 commit comments

Comments
 (0)