Eloquent has() method counts soft deleted rows

using

$users = User::has('comments','>=',3); 

in Laravel 5.6 returns users with more than 3 comments but counts soft deleted comments, while I want the list of users who have more than 3 active comments.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3m5FvUc
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

BlueHost Web Hosting Review: Secrets Revealed for Shared Hosting

How to Create Treeview with Bootstrap and jQuery

Submit Form using jQuery AJAX and PHP without Page Refresh