laravel SQLSTATE[22007]: Invalid datetime format: 1292 code example Example: invalid datetime format laravel change format to Y-m-d and for datetime is Y-m-d H:i:s