'require', 'name|名称' => 'require', 'phone|电话' => 'require', ]; public function sceneAdd() { return $this->only(['name', 'phone']); } public function sceneEdit() { return $this->only(['id', 'name', 'phone']); } }