mike_isp2 years agoLevel 3ReplyReport SpamIs it always the same subquery? Would a model scope be enough? Like Reply
userr3333 OP 2 years agoLevel 1ReplyReport Spam@mike_isp no, it's huge and complex distinct subqueries. Also I forgot to add that would like to avoid using the closure method since I had issues in the past. Using raw methods is very ugly too. Like Reply
amitsolanki24_2 years agoLevel 8ReplyReport Spam@userr3333 use Illuminate\Database\Query\Builder; Builder::macro('whereExist', function ($query, $column_name) { return $query->whereNull($column_name); }); Like Reply