$notifications * @property-read int|null $notifications_count * @property-read \Illuminate\Database\Eloquent\Collection $tokens * @property-read int|null $tokens_count * @method static \Illuminate\Database\Eloquent\Builder|Account newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Account newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Account query() * @method static \Illuminate\Database\Eloquent\Builder|Account whereAutolootExpire($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereAvailDt($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereCash($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereCreateTime($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereEmail($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereFishMindExpire($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereGoldExpire($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereIp($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereLastPlay($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereLogin($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereMarriageFastExpire($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereMileage($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereMoneyDropRateExpire($value) * @method static \Illuminate\Database\Eloquent\Builder|Account wherePassword($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereSafeboxExpire($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereSecuritycode($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereSilverExpire($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereSocialId($value) * @method static \Illuminate\Database\Eloquent\Builder|Account whereStatus($value) * @mixin \Eloquent */ class Account extends User implements MustVerifyEmail { use HasApiTokens, HasFactory, Notifiable; /** * The table associated with the model. * * @var string */ protected $table = 'account'; /** * The name of the "created at" column. * * @var string|null */ const CREATED_AT = 'create_time'; /** * The name of the "updated at" column. * * @var string|null */ const UPDATED_AT = null; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'login', 'email', ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'password', 'social_id', 'securitycode', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'email_verified_at' => 'datetime', 'status' => AccountStatusEnum::class, ]; /** * Determine if the user has verified their email address. */ public function hasVerifiedEmail(): bool { return $this->status != AccountStatusEnum::NOT_AVAILABLE; } /** * Mark the given user's email as verified. */ public function markEmailAsVerified(): bool { return $this->forceFill([ 'status' => AccountStatusEnum::OK, ])->save(); } /** * Send the email verification notification. */ public function sendEmailVerificationNotification(): void { $this->notify(new VerifyEmail); } /** * Get the email address that should be used for verification. */ public function getEmailForVerification(): string { return $this->email; } }