some answerd on laracasts:
pmall:
So category_id is a string and id an integer? The two column must have exactly the same definition, so they must be the same type. Why would you ever want to have a PK as int and a FK as string?
BartHuis:
aaaah, maybe that was wrong, i was initialy setting everything as string, just to test things, but i don't know for sure if both sides were a string at that time, i just re written the case here. but as you mention, both sides must be the same, so i thing only one of the sites were string and the other int... thanks, will try it later...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community