This commit is contained in:
Shohrat 2023-10-03 17:12:38 +05:00
parent 11370fa043
commit dc4e22535f
1 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,10 @@ class User extends UserBase
public static $loginAttribute = null; public static $loginAttribute = null;
public function scopeIsFeatured($query)
{
return $query->where('is_featured', 1)->where('type', '!=', 'simple');
}
/** /**
* Sends the confirmation email to a user, after activating. * Sends the confirmation email to a user, after activating.
* @param string $code * @param string $code