<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 錯誤消息 ### [](https://octobercms.com/docs/services/validation#custom-error-messages)自定義錯誤消息 如果需要,您可以使用自定義錯誤消息進行驗證,而不使用默認值。有幾種指定自定義消息的方法。 #### 將自定義消息傳遞到驗證器 ~~~ $messages = [ 'required' => 'The :attribute field is required.', ]; $validator = Validator::make($input, $rules, $messages); ~~~ > *注:*該`:attribute`位置固定器將根據驗證領域的實際名稱所取代。您還可以在驗證消息中使用其他占位符。 #### 其他驗證占位符 ~~~ $messages = [ 'same' => 'The :attribute and :other must match.', 'size' => 'The :attribute must be exactly :size.', 'between' => 'The :attribute must be between :min - :max.', 'in' => 'The :attribute must be one of the following types: :values', ]; ~~~ #### 為給定屬性指定自定義消息 有時您可能希望只為特定字段指定自定義錯誤消息: ~~~ $messages = [ 'email.required' => 'We need to know your e-mail address!', ]; ~~~ #### [](https://octobercms.com/docs/services/validation#localization)在語言文件中指定自定義消息 在某些情況下,您可能希望在語言文件中指定自定義消息,而不是將其直接傳遞到`Validator`。為此,請將消息添加到`lang/xx/validation.php`插件的語言文件中的數組中。 ~~~ return [ 'required' => 'We need to know your e-mail address!', 'email.required' => 'We need to know your e-mail address!', ]; ~~~ 然后在您的呼叫中`Validator::make`使用`Lang:get`來使用您的自定義文件。 ~~~ Validator::make($formValues, $validations, Lang::get('acme.blog::validation')); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看