Does the todo with that $id exists, probably it seems like it's deleting it because it never existed.
Yeah, it exists. Before deleting I see that record.
Maybe just add
if ( ! $todo ) {
// No record found
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community