binarcode/laravel-tenantable 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

binarcode/laravel-tenantable

最新稳定版本:2.6.0

Composer 安装命令:

composer require binarcode/laravel-tenantable

包简介

Just another multi tenant support package for Laravel.

README 文档

README

Total Downloads Latest Stable Version License

Just another multi tenant support package for Laravel. Heavily inspired from Mohamed Said multitenancy videos.

Installation

You can install the package via composer:

composer require binarcode/laravel-tenantable

Now lets setup it:

php artisan tenantable:setup

Usage

Let's say you have the App\Models\Organization as a tenant model.

This model has to implement the BinarCode\Tenantable\Tenant\Contracts\Tenant contract.

If you want to benefit of all the methods the contract as you to implement, just extends the BinarCode\Tenantable\Models\Tenant class, and you don't have to add anything else in your model.

Now I'll take it step by step, since I was very confused when I implemented my firt multitenancy application.

Migrations

You need 2 types of migrations, master and tenant. The migrations in the app\database\migrations directory, are used for tenant. If you have to add migrations for the master use app\database\migrations\master directory.

... See oficial documenation

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email eduard.lupacescu@binarcode.com instead of using the issue tracker.

Credits

Credits

The code of this package is based on the code shown in the Multitenancy in Laravel series by Mohamed Said

Alternatives

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 105.76k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固