|
@@ -2,29 +2,18 @@
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
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')
|
|
|
|
|
* @property int $id
|
|
* @property int $id
|
|
|
* @property string $member_id
|
|
* @property string $member_id
|
|
|
* @property string $username
|
|
* @property string $username
|
|
|
* @property string $first_name
|
|
* @property string $first_name
|
|
|
* @property string $language
|
|
* @property string $language
|
|
|
*/
|
|
*/
|
|
|
-class User extends Authenticatable
|
|
|
|
|
|
|
+class User extends BaseModel
|
|
|
{
|
|
{
|
|
|
- use HasApiTokens, Notifiable;
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
protected $table = 'users';
|
|
protected $table = 'users';
|
|
|
- protected $hidden = ['created_at', 'updated_at'];
|
|
|
|
|
protected $fillable = ['usdt', 'member_id', 'first_name', 'game_id', 'username', 'secret_key', 'secret_pass', 'language'];
|
|
protected $fillable = ['usdt', 'member_id', 'first_name', 'game_id', 'username', 'secret_key', 'secret_pass', 'language'];
|
|
|
|
|
|
|
|
public function wallet()
|
|
public function wallet()
|
|
@@ -52,14 +41,4 @@ class User extends Authenticatable
|
|
|
{
|
|
{
|
|
|
return $this->first_name;
|
|
return $this->first_name;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- 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');
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|