Questions tagged [wherehas]

32 questions
-2
votes
3 answers

Laravel eloquent many to many relation deep conditions

I have two Model named Product and Category. Admin can change the status of Product and Category. Here Product and Category has many to many relations. So that, all Product can belongs to multiple Category Now at my user panel, I want to show that…
-2
votes
2 answers

guery in bitween 3 table by relation

I have these relations user has many products product has many files I want products that : in user table status field is 1 and in file table status field is 1
1 2
3