Have you tried changing mysql
'strict' => false,
in database.php. Also there are a lot of stackoverflow post on this.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I just add my laravel project in my cpanel but when I try to add it's showing an error.
SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value (SQL: insert into doctors (image, name, title, ps, updated_at, created_at) values (public/uplodeimage/66077480_Untitled-1.png, Dr. Mahidhar Valeti, MBBS, MS (Gen Surgery), FRCS (Eng), FRCS (Ireland), FICS (USA), 0, 2019-12-26 16:53:08, 2019-12-26 16:53:08))
it's working fine in localhost but showing this error after adding it to live server.
Have you tried changing mysql
'strict' => false,
in database.php. Also there are a lot of stackoverflow post on this.
Please or to participate in this conversation.