[ 'name' => 'required', 'type' => 'required|in:1,2', 'start_date' => 'required|date', 'end_date' => 'sometimes|nullable|date', 'weeks' => 'sometimes|nullable|array', 'paper_id' => 'sometimes|nullable|integer', 'assign_admin_ids' => 'required|array', 'status' => 'sometimes|nullable|integer', ], ValidatorInterface::RULE_UPDATE => [ 'name' => 'required', 'type' => 'required|in:1,2', 'start_date' => 'sometimes|nullable|date', 'end_date' => 'sometimes|nullable|date', 'weeks' => 'sometimes|nullable|array', 'paper_id' => 'sometimes|nullable|integer', 'assign_admin_ids' => 'required|array', 'status' => 'sometimes|nullable|integer', ], ]; }