You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
declare(strict_types=1);
namespace App\Request\v3;
use App\Request\BaseFormRequest;
class UserUpdateRequest extends BaseFormRequest{
/** * Get the validation rules that apply to the request. */ public function rules(): array { return [ 'user_id' => 'required|nonempty', 'nick_name' => 'required|nonempty', 'avatar' => 'required|nonempty', 'openid' => 'required|nonempty', 'unionid' => 'required|nonempty', 'country' => 'string', 'province' => 'string', 'city' => 'string', 'gender' => 'string', 'language' => 'string', ]; }
/** * @return array */ public function messages(): array { return [ '*.*' => ':attribute无效', ]; }
public function attributes(): array { return parent::attributes(); }}
|