Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AndrewBen's avatar

i need help with this error result "SQLSTATE[23000]: Integrity constraint violation:"

I just reinstalled composer, php and my sql in my local machine. After syncing my laravel project from google drive i tried creating a user by submitting a form and then this error. SQLSTATE[23000]: Integrity constraint violation: I don't know what it mean and how to overwrite this error. Thanks in advance

0 likes
2 replies
bottelet's avatar

It means you are trying to insert some data into a column that dosenøt exsits, its hard to be more precise, without seeing your code.

AndrewBen's avatar

I don't know what part of my code is causing this error that is while i did not add any, the column exist in my database and is not just working

Please or to participate in this conversation.