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.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3vJi3xX
via IFTTT
Aucun commentaire:
Enregistrer un commentaire