*/ use HasFactory, Notifiable, TwoFactorAuthenticatable; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'two_factor_confirmed_at' => 'datetime', 'is_admin' => 'boolean', 'suspended_at' => 'datetime', ]; } public function channel(): HasOne { return $this->hasOne(Channel::class); } public function follows(): HasMany { return $this->hasMany(Follow::class); } public function isSuspended(): bool { return $this->suspended_at !== null; } }