Ken 1 week ago
parent
commit
f5852bef65
1 changed files with 1 additions and 26 deletions
  1. 1 26
      app/Models/GameplayRule.php

+ 1 - 26
app/Models/GameplayRule.php

@@ -1,23 +1,9 @@
 <?php
 
-
 namespace App\Models;
-
-use Illuminate\Database\Eloquent\Builder;
-use Illuminate\Foundation\Auth\User as Authenticatable;
-use Illuminate\Notifications\Notifiable;
-use Laravel\Sanctum\HasApiTokens;
-
-/**
- * @mixin Builder
- * @method static Builder|static where($column, $operator = null, $value = null, $boolean = 'and')
- */
-class GameplayRule extends Authenticatable
+class GameplayRule extends BaseModel
 {
-    use HasApiTokens, Notifiable;
-
     protected $table = 'gameplay_rules';
-    protected $hidden = ['created_at', 'updated_at'];
     protected $fillable = [
         'keywords',
         'groups',
@@ -25,15 +11,4 @@ class GameplayRule extends Authenticatable
         'mininum',
         'odds',
     ];
-
-
-    protected function getCreatedAtAttribute($value)
-    {
-        return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
-    }
-
-    protected function getUpdatedAtAttribute($value)
-    {
-        return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
-    }
 }