Paid subscription platform for creators, UK and US
A social platform where creators sell subscriptions, paid posts and messages to their fans. A Laravel 12 monolith with Inertia and Vue 3: payments and payouts with reconciliation, identity verification, real-time chats, a media library with personal watermarks and moderation with escalating sanctions. The project has been fully handed over to its owner and is live.
My role: Full-stack engineer.
The task
Creators earn from subscriptions, paid posts, messages and tips, and fans pay by card. The platform works in the UK and the US, with an English-only interface. A creator's identity must be verified before the first payout, content must be moderated, and media must be protected: a purchased photo or video should not leak to the internet without a trace.
Hence the requirements: payments and regular creator payouts, identity verification, chats with mass messages, a private media library, moderation with sanctions, account deletion with a way to restore it, a knowledge base and an admin panel for the team.
Architecture
It is a Laravel 12 monolith: Vue 3 pages arrive through Inertia, with no separate API for the frontend. Every business operation is its own action class, long tasks go to Horizon queues, real-time messages go through Laravel Reverb, and external services are connected through clients and webhooks.
- ClientsWeb appVue 3, Inertia, TypeScript, TailwindAdmin panelLaravel Nova: moderation, payouts, creator applications
- EntryCloudflareDNS, CDN, SSL, bot protectionLaravel 12Inertia controllers, actions, access policies
- ServicesPayments and subscriptionsprovider payment page, tips, reconciliationPayoutspayees, verification, batches, retriesIdentity verificationexternal service on creator applicationMedia librarygeneral and personal watermarksChatsReverb, mass messages, welcome messagesModerationpost and media review, sanctionsKnowledge basearticles and search
- Data and infrastructureHorizon and Redisqueues, a separate queue for videoAmazon S3media and temporary linksPayment providerpayments and payoutsEmail serviceemails and reminders
Key decisions
A monolith with Inertia instead of a separate API
The Vue 3 frontend gets page data straight from Laravel controllers through Inertia. Data types are generated from PHP into TypeScript, so the frontend and the backend describe the same structures.
- Why
- One codebase and one deploy: for a web platform this is faster than maintaining an API and a separate SPA.
- Trade-off
- A future mobile app will need a separate API.
Payment reconciliation with a saved context
Before sending a fan to the payment page, the platform saves the payment context: who pays, whom and for what. If the provider's confirmation does not arrive, a background job asks for the status, rebuilds the transaction from the context and grants access to the purchase. Separately, all recent transactions are reconciled regularly.
- Why
- A payment is not lost because of a missing webhook, and the buyer gets what they paid for.
- Trade-off
- The webhook and the reconciliation must reach the same result, so every transaction update goes through a shared check.
Two verification steps before a payout
A creator's identity is checked by an external service once, at application. Payouts are allowed only by the payee verification at the payment provider. Payouts are processed in batches on a schedule, a separate job checks their state, and failed ones are retried in small parts.
- Why
- Money goes only to a verified payee, and one failed transfer does not stop the rest.
- Trade-off
- A creator has two verification statuses, so the platform merges them into one clear status.
Personal watermarks on purchased media
A purchased photo or video is served to the buyer with their personal watermark and a leak ID. The copy is created in a queue on first view (video through ffmpeg in a separate queue), and until it is ready the version with a general watermark is shown. File links are short-lived. A watermark version number allows re-issuing all copies.
- Why
- A leaked file points to a specific buyer, which by itself discourages leaks.
- Trade-off
- Storage grows with the number of buyers, and video processing is heavy and slow.
Moderation with escalating sanctions
Posts and media are reviewed, and violations are grouped into categories. The sanction depends on the category and the number of violations: from a warning and a temporary block to a ban. Blacklisted-word hits are counted per user and saved by a background job.
- Why
- The rules are clear to creators and applied the same way by every moderator.
- Trade-off
- Violation categories must be defined carefully in advance, otherwise the ladder is unfair.
Heavy chat operations go to queues
Messages arrive in real time through Reverb. When users follow each other, a chat opens automatically. Mass messages and welcome messages to new fans are sent by queued jobs.
- Why
- A mass message to thousands of fans does not slow down the creator's interface.
- Trade-off
- A mass message arrives as the queue is processed, not instantly.
Hard parts
Mass message performance
Selecting recipients for a mass message loaded the database. The fix: indexes for these queries and sending through the queue in small parts.
Status drift at the payment provider
Payee statuses at the provider could drift from the platform's data. The fix: a status cache, events for sync failures and a regular full sync.
Account deletion without losses for buyers
Deletion is scheduled with a delay and can be cancelled, while the final cleanup runs as a nightly job. Media that fans have already bought is archived — both when a creator's account is deleted and when a message or chat is deleted.
Stack
- Backend
- PHP 8.4, Laravel 12, Inertia 2, Laravel Reverb, Horizon, Nova 5
- Frontend
- Vue 3, TypeScript, Pinia, Tailwind CSS 4, shadcn-vue
- Media
- Spatie Media Library Pro, Amazon S3, ffmpeg
- External services
- payment provider, identity verification (KYC), Cloudflare and Turnstile, email service
- Quality
- Pest, PHPStan, Rector, ESLint, Vitest
Need a similar system?
Tell me about the task — I reply within a day in RU, RO or EN.