Demo — sample data, nothing is saved or charged Switch role Reset demo Plinthstack on digitalhorizon.it.com
Plinthstack
Docs

What ships in the box

An overview of what is already written. The full architecture guide comes with the source and explains every decision; two of its chapters are previewed here.

Tenancy

  • Single-database, row-level multi-tenancy
  • Global tenant scope that fails closed
  • Subdomain and custom domain resolution
  • Certificate provisioning notes for both
  • Tenant-scoped file storage, cache keys and queued jobs
  • A tenancy isolation test suite

Read the chapter preview

Teams and permissions

  • Several teams per user, switching without logging out
  • Email invitations with expiry, resend and revoke
  • Owner, admin and member roles
  • Permissions editable per team and per plan
  • Ownership transfer
  • Last-owner protection

Billing and subscriptions

  • Monthly and yearly plans with feature flags and hard usage limits
  • Trials without a card
  • Grace period, dunning emails and a downgrade path
  • Proration on upgrade, seat-based pricing and coupons
  • PDF invoices: company details, customer tax ID, sales tax, VAT, reverse charge
  • Idempotent webhook handling
  • A billing driver layer, so a local gateway can replace Stripe

Read the chapter preview

Admin panel

  • Tenants, users and subscriptions in one place
  • MRR, ARR, churn and trial figures
  • Impersonation with a banner and an audit entry
  • Plans and coupons
  • Invoices and failed payments
  • Webhook logs

Security and accounts

  • Two-factor authentication with recovery codes
  • Session management across devices
  • API tokens with scopes
  • Activity log for every team-visible action

Website and themes

  • A marketing landing page you can launch with
  • Pricing, FAQ, docs and legal pages
  • Light and dark themes on every page
Technology stack

Requirements

BackendLaravel 12, PHP 8.3+
FrontendLivewire 3 + Tailwind CSS 4
AuthenticationLaravel Fortify + Sanctum
BillingLaravel Cashier behind a billing driver layer
TestingPest, 400+ tests

Full source code

With a licence to build and sell your own SaaS on it.

Architecture guide

A clean Laravel structure, and the reasoning behind each decision.

12 months of updates

See the changelog for the current version.