<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國際加速解決方案。 廣告
                ~~~ $validator = Validator::make($request->all(), [ 'amount' => ['required','numeric','min:'. $this->price_min], 'code' => ['required', 'min:6', 'regex:/^[A-Za-z0-9_-]+$/'], ],[ 'amount.required'=> '??? ???? ??? ????????', 'amount.numeric'=> '????????? ??? ???? ????', 'amount.min'=> sprintf('??? ????? ???????? %d ???? ????????? ??????', $this->price_min), ]); if ($validator->fails()) { return $this->error($validator->errors()->first()); } ~~~ 或者 ~~~ <?php namespace App\Http\Requests; use App\Exceptions\ApiException; use App\Models\MemberList; use App\Rules\CatIdRule; use App\Rules\CityRule; use App\Rules\EmailRule; use App\Rules\ThumbRule; use Illuminate\Foundation\Http\FormRequest; class HizmatqiRequest extends FormRequest { public function authorize(){ $info_id = (int) request()->get('info_id') ?? 0; if ($info_id > 0){ $per_name = 'info_edit'; }else{ $per_name = 'info_add'; } $user_id = request()->user()->user_id; if (MemberList::getGroupParam($user_id,$per_name) == 0){ return false; } return true; } protected function failedAuthorization() { throw new ApiException('?????? ????? ?????? ????????? ????????? ??????', 419); } public function rules() { return [ 'info_id' => ['sometimes','nullable','integer'], 'cat_id' => ['required','integer', new CatIdRule(2,5)], 'category' => ['required','integer', new CatIdRule(3,5)], 'price' => ['required','integer'], 'people_number' => ['required','integer'], 'job_type' => ['required','integer'], 'for_students' => ['sometimes','nullable','integer'], 'saramjan' => ['required','string',new ThumbRule('saramjan','????????? ??????')], 'education' => ['required','integer'], 'experience' => ['required','integer'], 'sex' => ['required','integer'], 'age' => ['required','integer'], 'boy_height' => ['required','integer'], 'custom_param' => ['sometimes','nullable','string'], 'content' => ['required','string','min:50'], 'intro' => ['required','string'], 'thumb' => ['required','string',new ThumbRule('thumb','????? ??????')], 'author' => ['required','string','max:150'], 'scale' => ['required','integer'], 'business_scope'=> ['required','string'], 'work_address' => ['required','string'], 'phone' => ['required','string','min:7'], 'email' => ['required','string', new EmailRule()], 'wechat' => ['required','string','min:5'], 'validity' => ['required','integer'], 'city_id' => ['required','integer', new CityRule()], 'longitude' => ['required','string','max:30'], 'latitude' => ['required','string','max:30'], ]; } public function withValidator($validator) { err_validator($validator); } public function messages() { return [ 'category.required' => '????? ?????? ??????', 'price.required' => '??????? ??????', 'people_number.required' => '????? ????????? ????? ?????? ?????', 'job_type.required' => '?????? ????? ??????? ??????', 'education.required' => '????? ???????? ??????', 'experience.required' => '?????? ??????????? ??????', 'sex.required' => '??????? ??????', 'age.required' => '?????? ??????', 'boy_height.required' => '??? ??????????? ??????', 'content.required' => '????? ??????????? ?????', 'content.min' => '????? ????????? 50 ?????? ??? ??????', 'intro.required' => '?????????? ???? ????????? ??????? ?????????? ????? ?????', 'author.required' => '?????? ???? ????? ?????? ?????', 'scale.required' => '????????? ???????? ????? ?????? ??????', 'business_scope.required' => '??????? ????????? ?????', 'work_address.required' => '?????? ???? ????? ??????? ?????', 'phone.required' => '?????? ??????? ????? ?????', 'wechat.required' => '???????? ??????? ????? ?????', 'validity.required' => '???????? ???????? ??????? ??????', 'city_id.required' => '????? ???? ??????? ??????', 'longitude.required' => '?????? ???? ???????? ?????????? ??????? ??????', 'latitude.required' => '?????? ???? ???????? ?????????? ??????? ??????', ]; } } ~~~
                  <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>

                              哎呀哎呀视频在线观看