Skip to content

Laravel React SaaS Starter Kit

Our Laravel SaaS backend with a React 19 frontend in TypeScript. The UI is built from shadcn/ui components on Radix UI, and hooks handle permissions, layout and translations.

React frontend stack

Framework
React 19.2 + TypeScript
Inertia adapter
@inertiajs/react v3
UI components
shadcn/ui on Radix UI
Icons
lucide-react
Toasts
sonner
Menu drag & drop
sortablejs
Type check
tsc
TypeScript 5Tailwind CSS v4Vite 8WayfinderLang Sync InertiaESLint 9 + Prettier 3

Features

What's in the kit

Every backend feature comes with a finished React UI: pages, dialogs, forms and toasts.

Authentication

Login, registration, password reset, email verification, two-factor auth, passkeys and profile & security settings. You switch each one on or off per domain.

Multi-tenancy

Each tenant gets its own database and subdomain. You create and edit tenants from a list with stats, track workspace status and invite each tenant's admin.

Domains

Give each tenant a primary domain and as many secondary ones as you need. Every domain has its own app name, default language and sign-in options.

Maintenance & suspension

Put every tenant workspace into maintenance with your own message, a secret bypass link and allowed IPs. You can also suspend a single workspace, which blocks it.

Users & invitations

Manage users with search and stats, give them a role and extra permissions, and invite them by email with a signed link.

Roles & permissions

Spatie roles and permissions with protected system roles, separate permission config files for the central and tenant apps, and menus that respect them.

Navigation & layouts

Menus live in the database and you reorder them by drag & drop. Pick a sidebar or header layout, a sidebar style, a sign-in layout and light or dark mode.

Localization

17 languages. Each user picks their own, each domain has a default, and validation messages are translated and shared with the frontend.

Testing & tooling

Pest feature tests, Larastan, Pint, ESLint and Prettier are set up, along with Laravel Boost guidelines and skills for AI coding agents.

Conventions

Idiomatic React

The React kit sticks to the usual React conventions, and tsc checks the types.

Pages
resources/js/pages/tenants/index.tsx
Components
kebab-case .tsx files
Hooks
resources/js/hooks/use-x.ts

Translations in a component

import { reactLang } from '@erag/lang-sync-inertia/react'

const { __ } = reactLang()

__('modules.tenant.index.title')

Typed routes with Wayfinder

import { index } from '@/routes/tenants'

index.url()

Framework-specific implementation

React pages with typed Inertia props

The React kit uses function components, hooks and the React Compiler while keeping Laravel routes, validation and authorization in the shared backend.

  • Receive page data as typed component props and read shared state with usePage.
  • Keep debounced searches, permissions and layout behavior in hooks under resources/js/hooks.
  • Use Inertia render props for forms, Radix primitives for accessible UI and sonner for feedback.

A page in React

type TenantIndexProps = {
    tenants: Tenant[];
};

export default function Index({ tenants }: TenantIndexProps) {
    const { can } = usePermission();
    return <TenantTable tenants={tenants} />;
}

Shared backend

The same Laravel backend in every kit

The Vue, React and Svelte kits run exactly the same backend code. Only resources/js is different.

  • The full Laravel + React source code
  • Access to the saas-laravel-starter-kit-react repository
  • Weekly updates, pushed to that repository
  • Pest feature tests, with Larastan and Pint already set up
  • 17 languages, with translations synced to the frontend
  • Documentation for the backend and the React frontend
Framework
Laravel 13 on PHP 8.3+
Bridge
Inertia v3 (inertia-laravel)
Authentication
Laravel Fortify + passkeys
Multi-tenancy
stancl/tenancy, database per tenant
Authorization
spatie/laravel-permission
Validation & types
spatie/laravel-data + TypeScript transformer
Typed routes
Laravel Wayfinder
Translations
erag/laravel-lang-sync-inertia
Quality
Pest 5, Larastan, Pint, Laravel Boost

Start building with React

The React Starter Kit is $30, paid once, or get all three kits for $79. You keep access for life and get weekly updates.

One-time payment · Lifetime access · Weekly updates included · No recurring subscription