problem with user_id

Cannot add or update a child row: a foreign key constraint fails
12 Replies
Chinese
ChineseOP2d ago
No description
Chinese
ChineseOP2d ago
No description
Chinese
ChineseOP2d ago
No description
Tim van Heugten
Tim van Heugtenthis hour
You are trying to insert a row without a user_id
Chinese
ChineseOP16h ago
I want to get my user_id from the users table.
No description
Chinese
ChineseOP16h ago
I worked in filament, but I forgot. I worked a year ago, and if you don't practice, you forget.
Lara Zeus
Lara Zeus14h ago
share the code. where is this happens? is this in a relation manager or a form? maybe you need a select for the user id? or you want the user_id from the session?
Chinese
ChineseOP13h ago
I want it to somehow, when a post is created, take the user_id that is logged in, and show my name after it.
Chinese
ChineseOP13h ago
Chinese
ChineseOP13h ago
That's how chatgpt gave me, and it still didn't work, maybe the project is compromised, I don't know Anyway, it's a project for college, and I have to present it in 10 minutes, I don't know if I'll continue it, maybe to practice.
ChesterS
ChesterS11h ago
Wow this thread is wild. ChatGPT + Limewire ?! What a combination of old and new!

Did you find this page helpful?