mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Convert controller validation to Form Requests
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user