Convert controller validation to Form Requests

This commit is contained in:
Shift
2024-10-31 20:46:50 +00:00
parent 812ee876e3
commit ed2b20c34f
2 changed files with 6 additions and 9 deletions
@@ -8,12 +8,11 @@ class ShowLinkRequestFormForgotPasswordRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules(): array
public function rules()
{
return ['g-recaptcha-response' => [
'required',
'captcha',
], ];
return ['g-recaptcha-response' => 'required|captcha'];
}
}