trypost/app/Enums/Plan/Slug.php
Paulo Castellano 21e45b4847 chore: remove legacy plan tiers (starter/plus/pro/max)
All customers were migrated to the single Workspace plan and the old plan rows
were deleted in production, so drop the now-dead legacy tiers from the code:
reduce the Plan Slug enum to Workspace only and default the PlanFactory to it.
Rework StripeEventListenerTest around the single Workspace plan (its monthly and
yearly price ids still exercise plan-by-price mapping, trial clearing, deletion,
and previous-plan propagation), and point the remaining tests that referenced
the starter/pro slugs at the seeded Workspace plan.
2026-06-22 15:31:32 -03:00

17 lines
251 B
PHP

<?php
declare(strict_types=1);
namespace App\Enums\Plan;
enum Slug: string
{
case Workspace = 'workspace';
public function label(): string
{
return match ($this) {
self::Workspace => 'Workspace',
};
}
}