If you are mistakenly using strict mode, you cannot use other strict functions to correct this error. Go to Illuminate \ Database \ Connectors \ MySqlConnector.php and change the function as shown below:
protected function strictMode() {
return "set session
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY
_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'";
}
replace the function with this.
source
share