Skip to content

Commit

Permalink
new validation on register request
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthaksavvy committed Nov 17, 2020
1 parent 120ccd0 commit 8d67f19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Http/Requests/RegisterRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function rules()
];

$custom = config('api-auth.validations');
$custom = gettype($custom) === 'array' ? $custom : $custom();
return array_merge($rules, $custom);
}
}

0 comments on commit 8d67f19

Please sign in to comment.