*/ use HasFactory; protected $guarded = ['id']; protected $casts = [ 'verified_at' => 'datetime', 'ssl_issued_at' => 'datetime', 'ssl_expires_at' => 'datetime', 'is_default' => 'boolean', ]; /** @return BelongsTo */ public function workspace(): BelongsTo { return $this->belongsTo(Workspace::class); } public function isVerified(): bool { return $this->verified_at !== null; } protected static function newFactory(): DomainFactory { return DomainFactory::new(); } }