You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am logged in as "Administrator". I went to the "Users" page (there was no search on this page), clicked "Edit" on a user, and then the delete confirmation modal popped up. I clicked "Confirm", and got the following error:
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (forum.user_roles, CONSTRAINT user_roles_user_id_foreign FOREIGN KEY (user_id) REFERENCES users (id))
Activity
svstoya-cyber commentedon Aug 19, 2025
I tried to add a deleting event in the User model’s boot method, but it doesn’t work. What should I do?