Mike %!s(int64=4) %!d(string=hai) anos
pai
achega
59120c64ec
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      app/Models/Docter.php

+ 6 - 6
app/Models/Docter.php

xqd
@@ -50,12 +50,12 @@ class Docter extends BaseModel
     }
     public function getIsCollectAttribute()
     {
-        if (!empty(request()->header('token'))) {
-            $user = User::getUserByToken();
-            if (Collection::where('user_id', $user['id'])->where('docter_id', $this->id)->exists()) {
-                return 1;
-            }
-        }
+//        if (!empty(request()->header('token'))) {
+//            $user = User::getUserByToken();
+//            if (Collection::where('user_id', $user['id'])->where('docter_id', $this->id)->exists()) {
+//                return 1;
+//            }
+//        }
 
         return 0;
     }