mission->state_id == MissionStates::PENDING_CONFIRMATION->value && $this->mission->code == $this->code); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'code' => 'required|string', ]; } }