'require|unique:flow', 'id' => 'require', ]; protected $message = [ 'name.require' => '名称不能为空', 'name.unique' => '同样的名称已经存在', 'id.require' => '缺少更新条件', ]; protected $scene = [ 'add' => ['name',], 'edit' => ['id','name'], ]; }