SyntaxFix
Write A Post
Hire A Developer
Questions
return Deal::with(["redeem" => function($q){ $q->where('user_id', '=', 1); }])->get();
this worked for me