ERAG
ERAG (Engineer • Research • Advance • Grow) builds and maintains SaaS Laravel and publishes open-source packages for Laravel, Inertia, Vue and React at erag.in. You can read more about SaaS Laravel and ERAG.
Articles signed by ERAG are written by the team that builds the kits. They cover multi-tenancy with a database per customer, roles and permissions, sign-in security, Laravel architecture and code quality, and the day-to-day work of launching and running a SaaS product.
Elsewhere:erag.inGitHubLinkedInX
Articles by ERAG
78 articles on the SaaS Laravel blog, newest first.
SaaS & operations·
Best Laravel SaaS Starter Kits in 2026, ComparedLaravel SaaS starter kits in 2026 compared: Spark, Wave, SaaSykit, Larafast, Tenancy for Laravel, the official kits and more, with a table and how to choose.
Architecture & code quality·
Laravel Official Starter Kits vs a SaaS BoilerplateLaravel's free official starter kits, a boilerplate with its own structure, or a kit on the official layout? What to check and how upgrades work.
SaaS & operations·
One-Time vs Subscription Laravel Starter KitsOne-time vs subscription Laravel starter kits: lifetime updates, one year of updates, free MIT kits, what you get, and the real cost over one to three years.
SaaS & operations·
SaaS Laravel vs Wave: Free SaaS Kit or Multi-Tenant Kit?SaaS Laravel vs Wave compared: free MIT Wave with billing, blog and Filament admin, or a paid kit with database-per-tenant tenancy and four frontends.
Multi-tenancy·
Single Database vs Database-per-Tenant Starter KitsWhich Laravel SaaS starter kits share one database and which give each tenant its own, and what that means for migrations, backups, hosting and reports.
Architecture & code quality·
Why We Didn't Use Filament in Our Multi-Tenant SaaS KitFilament is a great admin framework. Here is why we built SaaS Laravel's admin in the kit's own stack instead, and when Filament is still the better choice.
SaaS & operations·
Cost to Build a SaaS With Laravel: Hours, Formula, Running CostsThe cost to build a SaaS with Laravel, worked out in hours: example estimates per feature, a formula for your own rate, three scenarios and real running costs.
SaaS & operations·
Is Laravel Good for SaaS? An Honest Answer for 2026Is Laravel good for SaaS? What Laravel gives you out of the box, what you still build, where it's a weak fit, real products on it, and a 2-minute checklist.
Multi-tenancy·
Best Laravel Multi-Tenancy Package in 2026: Options ComparedWhich Laravel multi tenancy package to use in 2026: stancl/tenancy v3 and v4, Spatie, Sprout, tenancy/tenancy, Filament and DIY, with real release dates.
Architecture & code quality·
Laravel SaaS Architecture: How the Whole App Fits TogetherLaravel SaaS architecture explained: request flow, tenant identification, central vs tenant data, queues, billing webhooks, admin app and how to grow it.
SaaS & operations·
Laravel SaaS Examples: Real Products and Open Source AppsLaravel SaaS examples with sources: products confirmed to run on Laravel, plus open source Laravel SaaS apps on GitHub and the exact files worth reading.
SaaS & operations·
Laravel SaaS Mistakes: 15 We Keep Seeing, and the Fixes15 Laravel SaaS mistakes we see from idea to growth: tenancy, queues, permissions, billing, backups and AI code, with what to do instead and deeper guides.
Architecture & code quality·
Laravel SaaS Tech Stack: Our Pick for Every Layer in 2026The Laravel SaaS tech stack we'd pick in 2026, layer by layer: frontend, auth, tenancy, billing, queues, search, monitoring and hosting, with alternatives.
SaaS & operations·
Laravel vs Django vs Rails for SaaS: A Fair 2026 ComparisonLaravel vs Django vs Rails for SaaS in 2026: auth, billing, queues, multi-tenancy, frontend, hosting, AI coding and starter kits, plus a decision table.
Multi-tenancy·
What Is Multi-Tenancy in Laravel? A Plain-English GuideWhat multi-tenancy in Laravel means, in plain English: the three tenant models with tiny code samples, how requests find a tenant, and when you don't need it.
SaaS & operations·
Laravel Per Seat Billing: Stripe Quantities with CashierLaravel per seat billing with Cashier and Stripe: one price, quantity = users, seat counts from the tenant database, proration, minimum seats and webhooks.
SaaS & operations·
Laravel Health Check: /up, Readiness and Multi-Tenant MonitoringLaravel health check guide: the /up route and DiagnosingHealth, liveness vs readiness, spatie/laravel-health, and checks for tenant databases, queues and certs.
Multi-tenancy·
Laravel Multi-Tenancy Without a Package: Build It by HandLaravel multi tenancy without a package: subdomain middleware, runtime DB switching, tenant migrations, tenant-aware queues, cache and files, and when to stop.
SaaS & operations·
Laravel SaaS Metrics: Calculate MRR, Churn and ActivationLaravel SaaS metrics from your own data: calculate MRR, ARR, churned and expansion MRR, logo vs revenue churn and activation with daily snapshots.
SaaS & operations·
Laravel SaaS Usage Limits: Enforce Plan Quotas per TenantLaravel SaaS usage limits per tenant: a plan limits config, a UsageLimitService with check and consume, race-safe counters, monthly resets and Inertia meters.
Multi-tenancy·
Laravel Scout Multi Tenant Search: Shared or Per-Tenant IndexLaravel Scout multi tenant search with Meilisearch and stancl/tenancy: a shared index with tenant filters and tokens, or one index per tenant, plus reindexing.
SaaS & operations·
Laravel Spark Alternatives: Free, Paid and Multi-Tenant KitsLaravel Spark alternatives compared: what Spark includes, free options like Cashier and Wave, paid SaaS boilerplates, multi-tenant kits and Filament.
Multi-tenancy·
Laravel Teams vs Multi-Tenancy: Which Does Your SaaS Need?Laravel teams vs multi tenancy, compared in depth: team_id scoping, the Laravel 13 starter kit teams, Jetstream, tenant databases and how to migrate later.
Multi-tenancy·
Laravel Tenant Settings: Per-Tenant Settings That Don't LeakLaravel tenant settings for database-per-tenant apps: a tenant settings table, stancl's data column or spatie/laravel-settings, plus caching and Inertia props.
Multi-tenancy·
White Label SaaS Laravel Guide: Tenant Logos, Colors, DomainsA white label SaaS Laravel guide: per-tenant logos, favicons and brand colors with Tailwind v4 CSS variables, contrast checks, dark mode, emails and PDFs.
AI & developer tooling·
Vibe Coding a Laravel SaaS With Claude Code and CursorHow we vibe code a Laravel SaaS with Claude Code, Cursor or Codex: setting up the project, writing prompts that work and checking AI code before it ships.
Authentication & security·
Laravel Sanctum With stancl/tenancy: Multi-Tenant API TokensAdd Sanctum API tokens to a multi-tenant Laravel SaaS with stancl/tenancy: tokens per tenant, abilities, rate limits and the Unauthenticated fix.
Inertia & frontends·
Customize the Laravel Starter Kit Sidebar (shadcn + Inertia)Customize the shadcn sidebar in a Laravel Inertia starter kit: inset or floating styles, icon collapse, a saved state and a layout per user.
SaaS & operations·
Laravel SaaS Emails: Tenant Branding, Queues and LanguagesHow to send transactional emails in a multi-tenant Laravel SaaS: branding per tenant, queues, emails in each user's language, deliverability and testing.
SaaS & operations·
Build a SaaS MVP With Laravel: A Realistic 30-Day PlanHow to build and launch a SaaS MVP with Laravel in about a month: what to build and what to skip, the stack, a week-by-week plan and how long it really takes.
Authentication & security·
Laravel Activity Log with Spatie: A Practical GuideAdd a Laravel activity log with spatie/laravel-activitylog v5: what to log in a SaaS, what to keep out, an Inertia feed, pruning and multi-tenant storage.
SaaS & operations·
Laravel Cloud vs Forge vs Vapor for Multi-Tenant SaaSLaravel Cloud vs Forge vs Vapor for a database-per-tenant SaaS: wildcard subdomains, custom domains, creating databases, queues, Reverb and cost, as of 2026.
SaaS & operations·
Laravel Database Notifications with a Bell and InertiaBuild Laravel database notifications end to end: the notifications table, a notification class, unread count, mark as read and a Vue bell with Inertia.
Users & permissions·
Laravel Impersonate User: Safe Login as a CustomerLaravel impersonate user the safe way: a small session-based login as another user, an Inertia stop banner, blocked routes, audit logs and tenant tokens.
Inertia & frontends·
Laravel Inertia Datatable: Build It YourselfBuild a Laravel Inertia datatable with server-side search, sorting, filters and pagination, state in the URL, Vue and React code, and accessible headers.
Authentication & security·
Laravel Socialite Google Login for Inertia AppsAdd Laravel Socialite Google login to an Inertia app: Google Cloud setup, a social_accounts table, verified email matching, 2FA, and multi-tenant callbacks.
SaaS & operations·
Laravel vs Next.js for SaaS: What You Get vs BuildLaravel vs Next.js for building a SaaS: auth, queues, billing, tenancy and hosting compared honestly, plus why Laravel with Inertia and React is a middle path.
Multi-tenancy·
stancl/tenancy vs Spatie Multitenancy in 2026stancl tenancy vs spatie multitenancy, compared neutrally: identification, databases, bootstrappers vs tasks, tenant creation, queues, commands and testing.
Multi-tenancy·
Deleting Tenants Safely in LaravelHow to delete a tenant in Laravel safely: what stancl/tenancy removes, what it leaves behind, the soft delete trap, and a deletion flow you can retry.
SaaS & operations·
Deploying a Laravel SaaS to ProductionDeploy a Laravel SaaS step by step: server needs, wildcard DNS and TLS, a deploy script with tenant migrations, queue workers with Supervisor and the scheduler.
SaaS & operations·
SaaS Pricing: How to Price Your SaaS ProductA practical SaaS pricing guide for developers: value metrics, pricing models, tiers, trials vs freemium, annual plans, and how to turn plans into code.
Inertia & frontends·
Inertia Forms with the Form ComponentA practical guide to the Inertia Form component: field names, errors, slot props, reset and dirty state, file uploads, events and when to use useForm instead.
AI & developer tooling·
Laravel Boost: AI Coding Agents for LaravelLaravel Boost gives AI coding agents real context on your app: what boost:install writes, guidelines, skills, the MCP tools and how to keep it all up to date.
Architecture & code quality·
Laravel Data Objects with spatie/laravel-dataA practical spatie laravel data guide: build typed Data objects, validate requests, map snake_case fields, handle relations and send clean props to Inertia.
Authentication & security·
Email Verification in LaravelLaravel email verification explained: MustVerifyEmail, signed links, the verified middleware, Fortify routes, a resend page and handling email changes.
Authentication & security·
Laravel Fortify Tutorial for Inertia AppsA Laravel Fortify tutorial for Inertia apps: install Fortify, pick features, render Inertia pages and wire up login, registration and password reset.
SaaS & operations·
Local Laravel Subdomains with Laravel HerdSet up Laravel Herd subdomains for a multi-tenant app: .test domains, herd link and herd secure, APP_URL and SESSION_DOMAIN, alternatives and common pitfalls.
Users & permissions·
Permission-Based Menus in Laravel and InertiaHandle Laravel Inertia permissions on the frontend: define menu items with a permission, filter them on the server and render only what each user can open.
Architecture & code quality·
Larastan and Pint for Laravel Code QualitySet up Larastan and Pint in a Laravel project: code style presets, PHPStan levels, baselines, Laravel-specific rules and a simple local and CI workflow.
SaaS & operations·
Backups for a Multi-Database Laravel SaaSA Laravel database backup strategy for database-per-tenant SaaS apps: what to back up, dumping every tenant, retention, and restoring a single customer.
Multi-tenancy·
Laravel Multi-Tenancy with SubdomainsA Laravel multi-tenancy subdomain guide for stancl/tenancy: identification middleware, central domains, tenant routes, sessions, wildcard DNS and links.
Multi-tenancy·
Queued Jobs in a Multi-Tenant Laravel AppHow Laravel tenancy queue jobs keep their tenant: the stancl queue bootstrapper, a central jobs table, dispatching per tenant, URLs, locks and scheduling.
Authentication & security·
Passkeys in Laravel: Passwordless LoginHow Laravel passkeys work with WebAuthn and Fortify: the register and login flows, relying party and allowed origins for subdomains, and password fallback.
Authentication & security·
Password Rules and Confirmation in LaravelLaravel password rules explained: Password::defaults(), length vs complexity, breached-password checks, passwordrules hints and password confirmation.
Users & permissions·
Laravel Permissions Seeder with Config FilesBuild a Laravel permissions seeder driven by config files: file layout, idempotent seeding, role defaults, pruning old permissions, tenants and safe deploys.
Users & permissions·
Laravel Default Roles: Protecting System RolesDefine Laravel default roles in an enum, seed them safely and block renames and deletes on the server with a policy, a model guard and clear UI badges.
Users & permissions·
Laravel Roles and Permissions with SpatieA practical Laravel Spatie permission guide: roles, permissions and guards, assigning and checking them, super admins, caching, seeding and Inertia UI checks.
SaaS & operations·
Laravel SaaS Boilerplate vs Building from ScratchShould you start from a Laravel SaaS boilerplate or build from scratch? The work involved, hidden costs on both sides and a checklist to help you decide.
SaaS & operations·
Laravel SaaS Launch ChecklistA SaaS launch checklist for Laravel apps: product, security, billing, legal pages, operations, monitoring and support, with links to detailed guides for each.
SaaS & operations·
Laravel SaaS Starter Kit: A Complete Buyer's GuideWhat a Laravel SaaS starter kit should include, how to compare kits and what to check before you buy: multi-tenancy, auth, permissions, license and updates.
SaaS & operations·
Laravel Stripe Subscriptions for a SaaSAdd Laravel Stripe subscription billing to a multi-tenant SaaS with Cashier: bill the tenant, Checkout, webhooks, plan gating, the billing portal and tax.
Architecture & code quality·
Testing a Laravel SaaS with PestLaravel Pest testing for SaaS apps: what to test, setup, feature tests, permissions, Inertia pages, datasets, fakes, architecture tests and a fast suite.
Architecture & code quality·
The Service Layer Pattern in LaravelThe Laravel service layer explained: what belongs in a service class, how to use transactions, when to send emails and jobs, and mistakes to avoid.
Users & permissions·
Laravel Super Admin Role with Spatie PermissionBuild a Laravel super admin role with Spatie: Gate::before or Gate::after, checks the bypass misses, the first super admin and how to stop privilege escalation.
Multi-tenancy·
Tenant-Aware Cache and File Storage in LaravelHow Laravel tenancy cache and file storage stay separate per tenant: cache tags, supported stores, calls that skip scoping, tenant disks, S3 and public URLs.
Multi-tenancy·
Custom Domains for Tenants in LaravelAdd a Laravel tenant custom domain the safe way: storing and verifying domains, customer DNS, TLS certificates on demand, sessions, passkeys and links.
Multi-tenancy·
Tenant Migrations and Seeders in LaravelLaravel tenant migrations and seeders with stancl/tenancy: central vs tenant folders, tenants:migrate, safe deployments, idempotent seeders and fixing failures.
Architecture & code quality·
Thin Controllers in LaravelHow to write Laravel thin controllers: the four jobs a controller has, Form Requests, authorization attributes, clean responses and a fat controller refactor.
Authentication & security·
Two-Factor Authentication in LaravelLaravel two factor authentication with Fortify: how TOTP works, the enable, QR code and confirm flow, recovery codes, the login challenge and security tips.
Architecture & code quality·
Generate TypeScript Types from PHP in LaravelUse the Laravel TypeScript transformer to turn PHP classes, enums and laravel-data objects into TypeScript types, with setup, attributes, writers and CI tips.
Users & permissions·
User Invitations in Laravel with Signed URLsBuild a secure Laravel user invitation flow with temporary signed URLs, the signed middleware, queued emails, expiring single-use links and an accept page.
Localization·
Laravel User Locale: Per-User Language SettingsStore a Laravel user locale, validate and save the choice, apply it on every request and send emails and queued notifications in each user's language.
Localization·
Translating Validation Messages in LaravelLaravel validation messages translation explained: the lookup order, lang files for every locale, field names, custom messages, arrays and custom rules.
Inertia & frontends·
Laravel SaaS Dashboard with Vue and InertiaA Laravel Vue Inertia walkthrough for SaaS dashboards: typed props, layout breadcrumbs, a debounced search, useForm, modal refs and permission checks in Vue 3.
Architecture & code quality·
Modular Laravel Architecture for SaaSA practical guide to Laravel modular architecture for SaaS: feature modules, service providers that load routes, one-way dependencies and adding a module.
Multi-tenancy·
How to Build a Multi-Tenant SaaS with LaravelHow to build a multi-tenant SaaS application with Laravel: single database vs database per tenant, setting up stancl/tenancy, and the pitfalls to avoid.
Multi-tenancy·
stancl/tenancy Tutorial: Getting StartedA hands-on stancl tenancy tutorial: install stancl/tenancy 3, create a Tenant model, add tenant migrations and routes, and create your first tenant database.
SaaS & operations·
Suspending Customer Accounts in a SaaSHow to suspend a SaaS account the right way: status fields, blocking middleware, what stays reachable, background jobs, customer messages and reactivation.