From 53b305393cc5aeae18fe0a17ade2a8261f3c2d9f Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 7 Apr 2019 23:03:00 +0800 Subject: [PATCH] Remove unused model scope --- app/Models/User.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 1f9410a7..4ae3aebb 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -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;