PHPackages                             plugins-world/laravel-saas - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. plugins-world/laravel-saas

ActiveLibrary

plugins-world/laravel-saas
==========================

Tenant plugin made by fresns

1703PHP

Since May 13Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/plugins-world/LaravelSaas)[ Packagist](https://packagist.org/packages/plugins-world/laravel-saas)[ RSS](/packages/plugins-world-laravel-saas/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

LaravelSaas
===========

[](#laravelsaas)

[![Latest Stable Version](https://camo.githubusercontent.com/a8c898d6a690437392d134a0cc40b7bc0f33f1bb3a045b94aa51428241c9660e/687474703a2f2f706f7365722e707567782e6f72672f706c7567696e732d776f726c642f6c61726176656c2d736161732f76)](https://packagist.org/packages/plugins-world/laravel-saas)[![Total Downloads](https://camo.githubusercontent.com/751b20708aab0edf8809ba95fdfcf9543cbdd8ed9401c12c586c9ccf66f066a4/687474703a2f2f706f7365722e707567782e6f72672f706c7567696e732d776f726c642f6c61726176656c2d736161732f646f776e6c6f616473)](https://packagist.org/packages/plugins-world/laravel-saas)[![Latest Unstable Version](https://camo.githubusercontent.com/d2e6d3a261f137b7ae5a27120f23a4aad0c84bea9520421ebd185433e9ebf0d3/687474703a2f2f706f7365722e707567782e6f72672f706c7567696e732d776f726c642f6c61726176656c2d736161732f762f756e737461626c65)](https://packagist.org/packages/plugins-world/laravel-saas) [![License](https://camo.githubusercontent.com/65989b96a3f246459055e451d6f78bcfb5ee426032a326495e6e6725ae5e8e51/687474703a2f2f706f7365722e707567782e6f72672f706c7567696e732d776f726c642f6c61726176656c2d736161732f6c6963656e7365)](https://packagist.org/packages/plugins-world/laravel-saas)[![PHP Version Require](https://camo.githubusercontent.com/58986c541f46ef3a0a8ff8c810b54899fd1eca7e09eaf7342df267f220a6acfa/687474703a2f2f706f7365722e707567782e6f72672f706c7567696e732d776f726c642f6c61726176656c2d736161732f726571756972652f706870)](https://packagist.org/packages/plugins-world/laravel-saas)

在最新的 laravel 框架中使用 saas 功能的项目。

依赖项目：

- [插件管理器 fresns/plugin-manager](https://pm.fresns.org/zh-Hans/)
- [应用市场管理器 plugins-world/market-manager](https://github.com/plugins-world/MarketManager)
- [Tenancy 3.x](https://tenancyforlaravel.com/)
- [Laravel](https://laravel.com/)

前置要求
----

[](#前置要求)

- Laravel 9+
- Tenancy 3+
- fresns/plugin-manager ^2
- fresns/market-manager ^1
- fresns/cmd-word-manager ^1
- 项目已完成 plugins-world/market-manager 的安装。点击查看[Laravel 插件管理器，安装指南](https://discuss.plugins-world.cn/post/9S19kdNL)

安装
--

[](#安装)

1. 在插件管理后台安装并启用租户插件
2. 初始化插件

```
php artisan saas:install # 需要配置数据库的 root 账号密码
```

命令行
---

[](#命令行)

```
php artisan saas # 查看当前可以使用的与 saas 相关的指令
php artisan saas:tenant-add --tenant=foo # 添加租户，默认添加名称为 foo 的租户
php artisan saas:tenant-del --tenant=foo # 删除租户，默认删除名称为 foo 的租户
php artisan saas:tenant-list # 当前 saas 列表
php artisan tenants:migrate --tenants=foo # 执行 foo 租户的迁移，开发阶段建议指定租户，部署阶段可不指定，以批量运行租户迁移
php artisan tenants:migrate-rollback --tenants=foo # 回滚 foo 租户的迁移，开发阶段建议指定租户，部署阶段可不指定，以批量运行租户迁移的回滚操作
php artisan ...
```

使用
--

[](#使用)

参考 [tencentforlaravel](https://doc.wyz.xyz/pages/30ee05/) 翻译文档

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b37a4e4a059db2044bd4bc4336035e1d58fc4771d599b25bde0772e4a711f301?d=identicon)[mouyong](/maintainers/mouyong)

---

Top Contributors

[![mouyong](https://avatars.githubusercontent.com/u/10336437?v=4)](https://github.com/mouyong "mouyong (1 commits)")

### Embed Badge

![Health badge](/badges/plugins-world-laravel-saas/health.svg)

```
[![Health](https://phpackages.com/badges/plugins-world-laravel-saas/health.svg)](https://phpackages.com/packages/plugins-world-laravel-saas)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
