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

5 Free Black and White Social Media Icons Sets with CSS and HTML

How to Change Apache and MySQL Port Number in XAMPP Localhost