I am trying to insert values into my comments table and I am getting a error. Its saying that I can not add or update child row and I have no idea what that means.
m
Make sure you have project_id in the fillable property of your Comment model.
project_id
fillable
Comment
I had the same issue, And this was the reason.