format('Y-m-d H:i:s'); } public function addresses(): HasMany { return $this->hasMany(Address::class); } public function customerGroup(): BelongsTo { return $this->belongsTo(CustomerGroup::class); } public function wishlists(): HasMany { return $this->hasMany(CustomerWishlist::class); } public function rmas(): HasMany { return $this->hasMany(Rma::class); } public function notifyRegistration() { $useQueue = system_setting('base.use_queue', true); if ($useQueue) { $this->notify(new RegistrationNotification($this)); } else { $this->notifyNow(new RegistrationNotification($this)); } } public function notifyVerifyCodeForForgotten($code) { $useQueue = system_setting('base.use_queue', true); if ($useQueue) { $this->notify(new ForgottenNotification($this, $code)); } else { $this->notifyNow(new ForgottenNotification($this, $code)); } } }