'boolean', 'is_active' => 'boolean', ]; public function domain(): BelongsTo { return $this->belongsTo(Domain::class); } public function getTypeLabel(): string { return match ($this->redirect_type) { '301' => __('Permanent (301)'), '302' => __('Temporary (302)'), default => $this->redirect_type, }; } public function getStatusBadgeColor(): string { return $this->is_active ? 'success' : 'gray'; } }