Question:
I’m trying to get the jobs relation between two dates by using thewhereHas
method however I keep getting an Integrity constraint violation
and am not sure what is causing this issue.I’ve tried using the
with
and where
method, but they all return the same error.Error:
Answer:
Both tables probably have acreated_at
column so you need to specify which one (tbl1.created_at
) you want to use.If you have better answer, please add a comment about this, thank you!