I try to get all articles with a certain amount of votes. In this case 5. Someone knows how to do that?
$articles = Article::with('user', 'categorie', 'comments', 'votes') ->withCount('votes', 'cryptoVotes') ->where('created_at', '<=', Carbon::now()->subHour(1)) ->where('sum(crypto_votes_count)', '>', 5) ->paginate(20);
Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.