Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // where has relation and key - value
- // OR
- // doesnt have a relation
- ->where(function($query){
- $query->whereHas('report', function($q){$q->where('accepted', '<=', '0');})
- ->orWhereHas('report', function($q){$q;}, '<', 1);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement