['org_name', 'contact_name', 'contact_mobile', 'status'], 'edit' => ['org_id', 'org_name', 'contact_name', 'contact_mobile', 'status'], ]; /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. */ public function rules(): array { return [ 'org_id' => 'required', 'org_name' => 'required', 'org_code' => 'required', 'contact_name' => 'required', 'contact_mobile' => 'required', 'status' => 'required', ]; } public function messages(): array { return [ 'org_id.required' => '请选择租户!', ]; } }