dimanche 15 août 2021

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

Aucun commentaire:

Enregistrer un commentaire