scopes
This commit is contained in:
parent
dc4e22535f
commit
8d5a782a9f
|
|
@ -105,10 +105,6 @@ class User extends UserBase
|
|||
|
||||
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.
|
||||
* @param string $code
|
||||
|
|
@ -264,6 +260,11 @@ class User extends UserBase
|
|||
return $query->where('is_activated', 1);
|
||||
}
|
||||
|
||||
public function scopeIsFeatured($query)
|
||||
{
|
||||
return $query->where('is_featured', 1)->where('type', '!=', 'simple');
|
||||
}
|
||||
|
||||
/**
|
||||
* scopeFilterByGroup
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue