<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ``` <form class="form-horizontal" method="post" action="{{url('student/create')}}"> {{csrf_field()}} <div class="form-group"> <label for="name" class="col-sm-2 control-label">姓名</label> <div class="col-sm-5"> <input type="text" name="student[name]" class="form-control" id="name" value="{{old('student')['name']}}" placeholder="請輸入學生姓名"> </div> <div class="col-sm-5"> <p class="form-control-static text-danger">{{$errors->first('student.name')}}</p> </div> </div> <div class="form-group"> <label for="age" class="col-sm-2 control-label">年齡</label> <div class="col-sm-5"> <input type="text" name="student[age]" class="form-control" id="age" inputmode="{{old('student')['age']}}" placeholder="請輸入學生年齡"> </div> <div class="col-sm-5"> <p class="form-control-static text-danger">{{$errors->first('student.age')}}</p> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">性別</label> <div class="col-sm-5"> <label class="radio-inline"> <input type="radio" name="student[sex]" {{ (isset(old('student')['sex']) && old('student')['sex'] == '0') ? 'checked' : '' }} value="0"> 未知 </label> <label class="radio-inline"> <input type="radio" name="student[sex]" {{ (isset(old('student')['sex']) && old('student')['sex'] == '1') ? 'checked' : '' }} value="1"> 男 </label> <label class="radio-inline"> <input type="radio" name="student[sex]" {{ (isset(old('student')['sex']) && old('student')['sex'] == '2') ? 'checked' : '' }} value="2"> 女 </label> </div> <div class="col-sm-5"> <p class="form-control-static text-danger">{{$errors->first('student.sex')}}</p> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-primary">提交</button> </div> </div> </form> ``` ***** ``` // 1.控制器校驗 $this->validate($request,[ 'student.name'=>'required|min:4|max:20', 'student.age'=>'required|integer|max:150', 'student.sex'=>'required|integer' ],[ 'required'=>':attribute 為必填項', 'min'=>':attribute 長度不符合要求', 'integer'=>':attribute 必須為整數', 'max'=>':attribute 超過最大長度', ],[ 'student.name'=>'姓名', 'student.age'=>'年齡', 'student.sex'=>'性別', ]); // 2.Validator類驗證 $validator=\Validator::make($request->input(),[ 'student.name'=>'required|min:4|max:20', 'student.age'=>'required|integer|max:150', 'student.sex'=>'required|integer' ],[ 'required'=>':attribute 為必填項', 'min'=>':attribute 長度不符合要求', 'integer'=>':attribute 必須為整數', 'max'=>':attribute 超過最大長度', ],[ 'student.name'=>'姓名', 'student.age'=>'年齡', 'student.sex'=>'性別', ]); if($validator->fails()){ return redirect()->back()->withErrors($validator)->withInput(); } ```
                  <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>

                              哎呀哎呀视频在线观看