Skip to content

Commit

Permalink
Merge pull request #732 from bluej130/5.6
Browse files Browse the repository at this point in the history
Added `@throws ValidationException`
  • Loading branch information
taylorotwell authored Feb 28, 2018
2 parents b8ed539 + e2cd576 commit c3edfe0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Routing/ProvidesConvenienceMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public static function formatErrorsUsing(BaseClosure $callback)
* @param array $messages
* @param array $customAttributes
* @return array
*
* @throws ValidationException
*/
public function validate(Request $request, array $rules, array $messages = [], array $customAttributes = [])
{
Expand Down Expand Up @@ -88,6 +90,8 @@ protected function extractInputFromRules(Request $request, array $rules)
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Contracts\Validation\Validator $validator
* @return void
*
* @throws ValidationException
*/
protected function throwValidationException(Request $request, $validator)
{
Expand Down

0 comments on commit c3edfe0

Please # to comment.