Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verifyRoomAvailability deveria ser a última a ser aplicada #95

Open
thiagogomesverissimo opened this issue Aug 15, 2023 · 0 comments
Open
Assignees

Comments

@thiagogomesverissimo
Copy link
Member

As linhas do verifyRoomAvailability.php estão quebrando, pois a regra de horario_inicio required está sendo executada depois do verifyRoomAvailability, e quando $this->reserva->horario_inicio e $this->reserva->horario_fim, quebra a validação

    // 3. Se há conflitos vamos montar a string $conflicts indicando-os
    $inicio = Carbon::createFromFormat('d/m/Y H:i', $day.' '.$this->reserva->horario_inicio);
    $fim = Carbon::createFromFormat('d/m/Y H:i', $day.' '.$this->reserva->horario_fim);
@thiagogomesverissimo thiagogomesverissimo self-assigned this Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant