Browse Source

test:临时关闭表单验证

felixyin 3 months ago
parent
commit
ca70ace502
3 changed files with 5 additions and 4 deletions
  1. 1 1
      .env
  2. 1 0
      .gitignore
  3. 3 3
      app/Http/Requests/Coach/SubmitBaseInfoRequest.php

+ 1 - 1
.env

@@ -75,7 +75,7 @@ AWS_USE_PATH_STYLE_ENDPOINT=true
 
 VITE_APP_NAME="${APP_NAME}"
 
-YOUR_AUTH_KEY=264|EhLKiFPKfVJZBPmueCy6A8ph89ddKVwpD57mgHCre67036d0
+YOUR_AUTH_KEY=291|KmkVqyDmCSSRXVThRkMBNnHNHGxq0jwL2IcZmAeWd45a810b
 
 XDEBUG_MODE=debug
 XDEBUG_CONFIG="client_port=9003"

+ 1 - 0
.gitignore

@@ -34,3 +34,4 @@ _ide_helper.php
 _ide_helper_models.php
 .phpstorm.meta.php
 .phpunit.result.cache
+.env

+ 3 - 3
app/Http/Requests/Coach/SubmitBaseInfoRequest.php

@@ -17,9 +17,9 @@ class SubmitBaseInfoRequest extends FormRequest
             'nickname' => 'nullable|string|min:2|max:20',
             'avatar' => 'nullable|string|max:2048',
             'life_photos' => 'nullable|array',
-            'life_photos.*' => 'required|string|max:2048',
-            'gender' => 'required|string|in:1,2',
-            'mobile' => 'required|string|size:11',
+            'life_photos.*' => 'nullable|string|max:2048',
+            'gender' => 'nullable|string|in:1,2',
+            'mobile' => 'nullable|string|size:11',
             'birthday' => 'nullable|date|before:' . now()->subYears(18)->format('Y-m-d'),
             'work_years' => 'nullable|integer|min:0|max:99',
             'intention_city' => 'nullable|string|max:50',