There's a validation called unique and exists, but I'm getting Array to string conversion error because I'm passing an array of ids. Is there a way to check if these ids passed the validation?
I removed it and I'm getting The id has been taken validation error. I added that because it wouldn't throw an error if I submitted the data without updating it, but it doesn't work, I'm getting array to string conversion error.
If you get "The id has been taken." so it means that your validation works. But honestly I don't know why you want to allow insert ids. It should be autoincrement and just check other values when you insert new data.
I don't need exists when updating data, I have unique because the data has to be different from the other data in the table. I also want to ignore the data if it is not changed. If I didn't used unique with an extra param, when I submitted an update form but didn't changed the data, it will throw an error.