| 123456789101112131415161718192021222324252627282930313233343536373839 | 
							- <?php
 
- namespace App\Models;
 
- use App\Constants\HttpStatus;
 
- use App\Constants\Util;
 
- use Illuminate\Foundation\Auth\User as Authenticatable;
 
- use Illuminate\Notifications\Notifiable;
 
- use Laravel\Sanctum\HasApiTokens;
 
- use Illuminate\Database\Eloquent\Builder;
 
- /**
 
-  * @mixin Builder
 
-  * @method static Builder|static where($column, $operator = null, $value = null, $boolean = 'and')
 
-  */
 
- class User extends Authenticatable
 
- {
 
-     use HasApiTokens, Notifiable;
 
-     protected $table = 'users';
 
-     protected $hidden = ['created_at', 'updated_at'];
 
-     protected $fillable = ['usdt', 'member_id', 'first_name', 'game_id'];
 
-     public function wallet()
 
-     {
 
-         return $this->belongsTo(Wallet::class, 'id', 'user_id');
 
-     }
 
-     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');
 
-     }
 
- }
 
 
  |