Free & open source
Filament SaaS Starter
A free starting point for a multi-tenant SaaS on Laravel 13 and Filament 5. Your customers sign up, get a workspace, invite their team and pay for a plan that sets their limits. One command gives you a regular Laravel app that you own and change from the first commit.
- packstub/filament-saas-starter
- PHP 8.3+ Laravel 13 · Filament 5
- MIT, free for any project
- SQLite to start, MySQL or PostgreSQL
- Packagist, or as a GitHub template
What you get in the first hour
The parts a SaaS needs before its first customer, wired together and covered by tests, so you can start on your own product.
- Sign-up and log-in. Filament’s own auth pages, with e-mail verification, Google and GitHub sign-in, password reset, a profile page, two-factor authentication, a download of your data and account deletion.
- Workspaces. Every sign-up gets one, with a Get started checklist on its dashboard. A person can belong to several, and everything in the panel is scoped to the current one.
- Team members. Invitations by e-mail or link and the roles Owner, Admin and Member. Each member or pending invitation takes a seat, and the plan sets how many seats a workspace has.
- Plans and limits. Free, Pro and Business in one config file, and a Your plan page with usage. An override gives one workspace more than its plan, without changing the plan.
- Billing with Stripe. Stripe Checkout and the customer portal through Laravel Cashier, with monthly and yearly prices, a free trial and optional per-seat pricing. A webhook puts the workspace on the plan it pays for.
- An API. API tokens per workspace with abilities and expiry, and a versioned REST API for projects that respects the plan’s limits.
- Audit log. An Activity page for owners and admins: who joined, left, changed role or was invited, ownership transfers and every plan change.
- Revenue metrics. MRR, paying subscriptions, trials, churn, sign-ups and plans on the admin dashboard, read from your own database.
- Support logins. From the admin panel, you sign in as a customer to see what they see, and every switch is logged.
- One complete example. Projects, scoped to the workspace, guarded by a policy and counted against a plan limit: the pattern to copy for your own models.
- A home page. A landing page with features, pricing read from your plans, a FAQ, Terms and Privacy placeholders, and the meta tags, sitemap and robots.txt search engines look for.
- Tests. A Pest suite over all of the above, and GitHub Actions to run it on PHP 8.3, 8.4 and 8.5.
One command, then sign in
The Laravel installer
creates the project, migrates an SQLite database and seeds three demo accounts. Serve it with
Laravel Herd or composer dev, and the log-in pages show
the accounts as one-click buttons while you work locally.
Prefer to start from GitHub? Click Use this template on the
repository, clone your copy and run
composer setup.
| Sign in at | Who | |
|---|---|---|
| /app | [email protected] | Owner of the Acme workspace, on the Pro plan |
| /app | [email protected] | Member of Acme |
| /admin | [email protected] | Admin: users, workspaces, support logins |
Plans are one config file
Free, Pro and Business ship as an example in config/packstub-features.php,
with limits on projects and seats, API access on Pro and Business, and priority support on Business.
The Your plan page and the home page’s pricing read from it. Wherever a limit matters, your code
asks Filament Features:
use Packstub\Features\Facades\Features; Features::limit('projects'); // 50, or null for unlimitedFeatures::canUse('projects'); // is there room for one more?Features::active('priority_support'); // is the feature included?
What it is built from
Three free Packstub plugins, Laravel Cashier and Filament’s built-in tenancy, each with its own documentation.
The Members and Invitations pages, the Owner, Admin and Member roles, and the invitation e-mails.
Plans and limits per workspace, the Your plan page, and feature flags and per-workspace overrides in the admin panel.
Support logins: sign in as a customer from the admin panel, switch back, and keep a log of every switch.
Stripe Checkout, the customer portal, subscriptions and webhooks, with the workspace as the Stripe customer.
The workspace in the URL, and every resource in the panel scoped to it, with no extra package.
Laravel Sanctum issues the API tokens, Laravel Socialite handles Google and GitHub sign-in, and Laravel Boost comes as a dev dependency, next to the kit’s own guidelines for coding agents.
Requirements
The database is SQLite out of the box. For MySQL or PostgreSQL, change
DB_CONNECTION in .env.
- PHP
- 8.3 or newer
- Laravel
- 13
- Filament
- 5
- Node
- 20.19 or newer, to build the home page’s CSS
In production the app needs MySQL or PostgreSQL, a queue worker, the scheduler and a mail provider, and a Stripe webhook once you sell plans. The repository has deploy guides for Laravel Cloud and for your own server with Forge, Ploi or by hand, plus a production checklist.
Add a module when your product needs it
The kit leaves out what only some products need. Each of the six modules is a short recipe in
docs/modules: the composer require line,
one line in app/Filament/Plugins.php, the migrations, a plan limit where one fits,
what happens when a workspace or an account is deleted, and a test to copy.
Later, if you need it
A database per workspace
All workspaces share one database. It is the simplest setup and the right one for most products. When a customer needs their data kept apart, or one database stops being enough, Filament Tenancy, our Pro plugin built on stancl/tenancy, adopts the app as it is. It lets you move a workspace to a shard (a shared database on another server) or to a database of its own.
The kit is laid out for that move from the start: what a workspace owns sits in
database/migrations/workspace, with ULID keys and no foreign
keys to the tables that stay in the shared database. A test keeps every new table in line.
Filament Tenancy needs PHP 8.4 or newer; the kit itself runs on 8.3.
Questions about the starter
- Is the Filament SaaS Starter free?
- Yes. It is open source under the MIT license, for personal, client and commercial projects. Filament Teams, Filament Features and Filament Account Switcher, the three Packstub plugins it is built from, are MIT too and install from Packagist.
- Can I change everything?
- Yes. A new project is a regular Laravel app in your own repository: the panels, the plans, the home page and every line of copy are yours to change. The kit does not update itself, so each release in the changelog says what you may want to copy over.
- Do I need a Stripe account to run it locally?
- No. Without Stripe keys the app runs, every workspace keeps its plan, and the Billing page lists the keys still missing from .env. The test suite answers Stripe's calls itself, so it needs no account either. Add test-mode keys and the Stripe CLI when you want to try Checkout.
- One database, or a database per workspace?
- One. All workspaces share one database, and Filament scopes everything in the panel to the current workspace, which is the simplest setup and the right one for most products. If you later need a database per workspace, Filament Tenancy (Pro) adopts the app as it is, and the kit's tables are already laid out for that move.
- What can I add later?
- Six optional modules, each a short recipe in docs/modules: themes with Nitpick, Session Replay, workflows with Flow, forms with Form Builder, a Projects board with Kanban and an AI assistant with Filament Agents, paid for by monthly AI credits from the plan through Credits for Laravel. Nothing is pre-wired, so a module you skip costs nothing.
- Which databases does it run on?
- SQLite out of the box, so a new project runs without a database server. Change DB_CONNECTION in .env for MySQL or PostgreSQL, which is what production needs.
Start from a working app, and make it yours.