PHPackages                             yanhaoli/office-building - 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. [Framework](/categories/framework)
4. /
5. yanhaoli/office-building

AbandonedArchivedLibrary[Framework](/categories/framework)

yanhaoli/office-building
========================

office building is a multi tenancy package for laravel

1.0.5(7y ago)2614812MITPHPPHP &gt;=5.4.0

Since May 11Pushed 7y ago5 watchersCompare

[ Source](https://github.com/yanhao-li/office-building)[ Packagist](https://packagist.org/packages/yanhaoli/office-building)[ RSS](/packages/yanhaoli-office-building/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (7)Used By (0)

 [![](https://camo.githubusercontent.com/0e3136dbfa17c09531cc8166d1f1a1639cbe65549aaaf68120ebede2fb078e73/687474703a2f2f79616e68616f6c692e636f6d2f6f66666963652d6275696c64696e672f6c6f676f2e737667)](https://camo.githubusercontent.com/0e3136dbfa17c09531cc8166d1f1a1639cbe65549aaaf68120ebede2fb078e73/687474703a2f2f79616e68616f6c692e636f6d2f6f66666963652d6275696c64696e672f6c6f676f2e737667)

Office Building
===============

[](#office-building)

[![Travis](https://camo.githubusercontent.com/74beef26e51f741af657b8dfec49c63d17a547b39cca1920e16651312a520546/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f79616e68616f2d6c692f6f66666963652d6275696c64696e672e737667)](https://travis-ci.org/yanhao-li/office-building) [![license](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667) [![PRs Welcome](https://camo.githubusercontent.com/dd0b24c1e6776719edb2c273548a510d6490d8d25269a043dfabbd38419905da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667)](CONTRIBUTING.md#pull-requests)

Office Building is an easy to use Laravel package to help you build the Multi-tenant SaaS with database-per-tenant. Support Laravel 5.3+

Installation
------------

[](#installation)

Install Office Building via Composer:

```
composer require yanhaoli/office-building
```

For laravel &gt;= 5.5 that's all, thanks to [Package Discovery](https://laravel.com/docs/5.5/packages#package-discovery).

For laravel &lt;= 5.5, you have to add `Yanhaoli\OfficeBuilding\Providers\OfficeBuildingServiceProvider` to your `config/app.php` providers array:

```
Yanhaoli\OfficeBuilding\Providers\OfficeBuildingServiceProvider::class,
```

Usage
-----

[](#usage)

1. Config the basis Firstly you have to publish the config file with the following command:

    ```
    php artisan vendor:publish --provider="Yanhaoli\OfficeBuilding\Providers\OfficeBuildingServiceProvider"
    ```

    Now checkout `config/officebuilding.php` and modify it by your needs.
2. Open a new Office for your customer

    ```
