Remove unused model scope

This commit is contained in:
Pig Fang 2019-04-07 23:03:00 +08:00
parent 2cd3e47606
commit 53b305393c

View File

@ -245,14 +245,6 @@ class User extends Authenticatable
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()
{
return $this->uid;