*/ use HasFactory; protected $fillable = [ 'site_id', 'from', 'to', 'mode', 'status', ]; /** * @var array */ public static array $statusColors = [ RedirectStatus::CREATING => 'warning', RedirectStatus::READY => 'success', RedirectStatus::DELETING => 'warning', RedirectStatus::FAILED => 'danger', ]; /** * @return BelongsTo */ public function site(): BelongsTo { return $this->belongsTo(Site::class); } }