Public open-source package

Laravel SaaS Kit

Build a SaaS or product website in a fresh Laravel 12 app with Google sign-in, Stripe subscriptions, a customer dashboard, and a multilingual blog. Own and customize the installed source code.

Laravel developers starting a new SaaS or product website who want editable sign-in, billing, customer pages, and admin tools in one application.

n2ns/laravel-saas-kitv0.1.0Apache-2.0LaravelSaaSStripeFilament
Laravel SaaS Kit

Overview

  • A Laravel 12 SaaS starter kit that installs a product website into a fresh application.
  • Start with marketing pages, a product catalog, Google sign-in, Stripe billing, customer accounts, a blog, and admin tools, then add your product-specific functionality.
  • The installed files become your application code. Edit them directly; later package releases do not automatically update those files.

Common Uses

  • Build a SaaS with Laravel when you need subscriptions, one-time purchases, or credits alongside a public product site.
  • Publish product landing pages and multilingual articles with an admin panel for ongoing content updates.
  • Give desktop apps or browser extensions a shared website for Google sign-in, purchases, and customer account management.

Requirements

  • A brand-new Laravel 12 application; the installer replaces application files and initial database setup drops existing tables.
  • PHP 8.3 or newer and Composer 2.
  • Node.js and npm for frontend assets; the kit builds with Node.js 24 in CI.
  • MySQL or MariaDB for production; SQLite works for local testing.
  • Google OAuth credentials for sign-in and Stripe credentials for billing.

Install

  1. 1

    Create a new application: composer create-project laravel/laravel:^12.0 my-site, then cd my-site.

  2. 2

    composer require n2ns/laravel-saas-kit

  3. 3

    php artisan saas-kit:install --force

  4. 4

    composer dump-autoload

  5. 5

    For this new site, copy .env.example to .env, run php artisan key:generate, and configure the database before migrating.

  6. 6

    Only against the new site database: php artisan migrate:fresh --force.

  7. 7

    php artisan db:seed --class=ReferenceDataSeeder --force

  8. 8

    php artisan passport:keys --force

  9. 9

    php artisan passport:ensure-social-client --create

  10. 10
    shell
    npm install
  11. 11
    shell
    npm run build

Configure

  1. 1

    Set your app URL, Google OAuth, Stripe, and mail settings in .env. Set starter Stripe product and price IDs before seeding if you already have them.

  2. 2

    For external-client API login, copy the Passport client values printed by passport:ensure-social-client into .env.

  3. 3

    Set ADMIN_EMAILS or ADMIN_EMAIL to your admin Google account, then sign in to the Filament panel.

  4. 4

    Follow the installed NEW_SITE_CHECKLIST.md to replace starter products, plans, branding, legal copy, and deployment paths.

Tools / Commands

  • saas-kit:install -- Copies the product-site application into a fresh Laravel project; --force replaces conflicting application files.
  • passport:keys -- Generates keys for API authentication.
  • passport:ensure-social-client --create -- Creates the client used for external-client API login.

Resources / Settings

  • Google sign-in and One Tap, plus token-based login for desktop apps and browser extensions.
  • Stripe Checkout, subscriptions, one-time purchases, credits, and the Stripe Customer Portal.
  • Customer pages for subscriptions, orders, and account settings; a Filament admin panel for managing the site.
  • Product catalog, pricing pages, multilingual blog, sitemap, canonical URLs, alternate-language links, and structured data.
  • Built-in visitor and event analytics, plus deployment scripts and server configuration examples.

FAQ

Frequently asked questions and troubleshooting guides.

It installs a product website with Google sign-in, Stripe billing, customer account pages, a multilingual blog, a Filament admin panel, and visitor analytics. You still build the functionality specific to your SaaS and configure your own service accounts.
Use a fresh Laravel 12 application. The installer replaces application files, and the initial migrate:fresh step drops existing tables. This is a starting application, not an add-on for an existing site.
Yes. You own the copied application files and can edit schemas, controllers, and layouts. Updating the package later does not update those files automatically; follow the template maintenance guide when applying shared fixes.
Laravel Post2Site and the N2N Post2Site MCP bridge are separate, optional projects. They are not required to run the kit, and you must connect them to your content model if you want that publishing workflow.