app/Http/Requests/EnquiryDataRequest.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 [
             'message' => 'required|max:1000',
            'contactNo' => 'min:10|numeric',
         ];
    }
public function rules ( ) { return [ 'message' => 'required|max:1000' , 'contactNo' => 'min:10|numeric' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .