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

تعليقات

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

How to Create Treeview with Bootstrap and jQuery

jQuery Datatables with PHP, MySQL and AJAX Example

How to Add Images to Dropdown List using jQuery