trypost/app/Http/Controllers/Auth
Paulo Castellano 2da15df96c feat: introduce Account entity as billing owner and refactor architecture
- Create Account model as Cashier Billable entity (stripe, plan, subscription)
- Account owns workspaces and has an owner_id (User)
- User belongs to one Account via account_id
- Workspace belongs to Account via account_id, no longer has billing fields
- Remove Brand model entirely (workspaces serve as grouping)
- Rename brand_limit to workspace_limit in plans
- Workspace roles simplified: admin/member/viewer (owner via Account)
- Invites now belong to Account with workspaces JSON array
- Pennant features scope changed from Workspace to Account
- EnsureSubscribed middleware checks Account subscription
- All controllers updated: BillingController, OnboardingController,
  WorkspaceInviteController, SocialController, StripeEventListener
- Frontend: extract GoogleAuthButton component, create WorkspaceRole
  enum for type-safe role checks, fix all views for new architecture
- All 1101 tests passing
2026-04-14 22:22:04 -03:00
..
AcceptInviteController.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
AuthenticatedSessionController.php fix: security audit - IDOR, open redirect, authorization, session fixes 2026-03-30 14:58:25 -03:00
BlueskyController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
EmailVerificationNotificationController.php refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
EmailVerificationPromptController.php refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
FacebookController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
InstagramController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
InstagramFacebookController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
LinkedInController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
LinkedInPageController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
MastodonController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
NewPasswordController.php feat: improvements on invites 2026-01-20 16:53:54 -03:00
PasswordResetLinkController.php feat: improvements on invites 2026-01-20 16:53:54 -03:00
PinterestController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
RegisteredUserController.php chore: tracking, gtm and more 2026-03-30 21:32:43 -03:00
SignupSuccessController.php chore: tracking, gtm and more 2026-03-30 21:32:43 -03:00
SocialController.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
SocialLoginController.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
ThreadsController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
TikTokController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
VerifyEmailController.php refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
XController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
YouTubeController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00