app/Http/Requests/ContactRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name' => 'required',
            'email' => 'required|email|max:255',
            'phoneno' => 'required|numeric|min:10',
            'message' => 'required',
            'recaptcha_token' => ['required', new ReCaptchaRule($this->recaptcha_token)]
        ];
    }
public function rules ( ) { return [ 'name' => 'required' , 'email' => 'required|email|max:255' , 'phoneno' => 'required|numeric|min:10' , 'message' => 'required' , 'recaptcha_token' => [ 'required' , new ReCaptchaRule ( $ this -> recaptcha_token ) ] ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .