Laravel Multi Tenancy

🌐Community
by leeovery · vlatest · Repository

This skill enables Laravel applications to manage multiple independent databases and configurations for diverse tenants, streamlining SaaS development.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add laravel-multi-tenancy npx -- -y @trustedskills/laravel-multi-tenancy
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "laravel-multi-tenancy": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/laravel-multi-tenancy"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables AI agents to configure and manage multi-tenant architectures within Laravel applications, ensuring data isolation between different customer organizations. It automates the setup of tenant-specific configurations, databases, and middleware to support scalable SaaS deployments.

When to use it

  • Setting up a new SaaS application where multiple clients share the same codebase but require isolated data.
  • Migrating an existing single-tenant Laravel app to a multi-tenant model without rewriting core logic.
  • Implementing custom tenant identification strategies based on subdomains, URL paths, or headers.
  • Managing database isolation patterns such as separate schemas or distinct physical databases per tenant.

Key capabilities

  • Automated installation of multi-tenancy packages and dependencies.
  • Configuration of tenant models with specific relationship mappings.
  • Setup of middleware to automatically resolve tenant contexts based on request attributes.
  • Implementation of database connection switching for isolated data storage.

Example prompts

  • "Install the laravel-multi-tenancy skill and configure a new SaaS app to isolate customer data by subdomain."
  • "Use this skill to set up a multi-tenant Laravel project with separate databases for each organization."
  • "Configure tenant identification using URL paths and generate the necessary middleware for my existing Laravel codebase."

Tips & gotchas

Ensure your database migrations are compatible with the chosen isolation strategy before running automated setup scripts. Always verify that tenant context resolution works correctly in both development and production environments to prevent data leakage between clients.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
leeovery
Installs
68

🌐 Community

Passed automated security scans.