When I try to get the list of users from User:all()
, it shows me the users who also are not email verifed.
So to avoid the above situation, I am writing the following code.
$users = User::with('selfie')->whereNotNull('email_verified_at')->orderBy('created_at', 'desc')->get();
let me know if there is any other shorter way.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire