Skip to content
Discussion options

You must be logged in to vote

Nevermind, I have figured out this.

The issue is, here 'active' is ambiguous because in join query both subjects and chapters table have same column 'active' .So where condition without table name is the cause of ambiguous.

So instead of using ->where('active', true) , use ->where('chapters.active', true)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dhruva81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant