Remove unused model scope
This commit is contained in:
parent
2cd3e47606
commit
53b305393c
|
|
@ -245,14 +245,6 @@ class User extends Authenticatable
|
||||||
return $this->hasMany('App\Models\Player', 'uid');
|
return $this->hasMany('App\Models\Player', 'uid');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Expand like scope for Eloquent Model.
|
|
||||||
*/
|
|
||||||
public function scopeLike($query, $field, $value)
|
|
||||||
{
|
|
||||||
return $query->where($field, 'LIKE', "%$value%");
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getAuthIdentifier()
|
public function getAuthIdentifier()
|
||||||
{
|
{
|
||||||
return $this->uid;
|
return $this->uid;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user