The problem is that laravel is trading the day for the month before saving the record.
That way, the date 05/10/2018 is saved on database as 2018-05-10, and the date 10/05/2018 is saved as 2018-10-05.
So if I put in the field a day greater than 12 some kind of error occurs and the record is saved as 1970-01-01.
I'd like to know why this is happening and what to do to fix it. Thank you.