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.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire