PHPackages                             thiagomeloo/tenant - 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. thiagomeloo/tenant

ActiveLibrary

thiagomeloo/tenant
==================

A package to manage multi-tenant applications in Laravel

04PHP

Since Oct 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/thiagomeloo/tenant)[ Packagist](https://packagist.org/packages/thiagomeloo/tenant)[ RSS](/packages/thiagomeloo-tenant/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Tenant Package
==============

[](#tenant-package)

Install
-------

[](#install)

- Install package

    ```
        composer require thiagomeloo/tenant
    ```
- Run migrations for creating tables **tenants** and **domains**

    ```
        php artisan migrate
    ```
- Create folder migrations tenant in **database/migrations/tenant/app**

    ```
        mkdir -p ./database/migrations/tenant/app
    ```
- Publish

    - Config

        ```
            php artisan vendor:publish --tag=tenant-config --force
        ```
    - Route File

        ```
            php artisan vendor:publish --tag=tenant-routes --force
        ```

Usage
-----

[](#usage)

- ### Create tenant and domain

    [](#create-tenant-and-domain)

    ```
