Skip to content

Commit

Permalink
T10 Update User.php
Browse files Browse the repository at this point in the history
  • Loading branch information
imtyaz-17 authored Jul 4, 2024
1 parent da9960b commit 12a4386
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@ class User extends Authenticatable
protected $casts = [
'email_verified_at' => 'datetime',
];

public function scopeActive($query)
{
return $query->whereNotNull('email_verified_at');
}
}

0 comments on commit 12a4386

Please sign in to comment.