Skip to content

Demo | A simple demo SAAS application on Laravel. With Tenancy For Laravel with separate database for each tenant & Spaite Laravel-Permission.

Notifications You must be signed in to change notification settings

abdullahaldot22/tenancyForLaravel

Repository files navigation

Demo Saas Application


with Tenancy For Laravel (Separate Database for Each Tenant) & Spatie Laravel-Permission.


Clone the git repo to deploy at your localhost

git clone https://github.com/abdullahaldot22/tenancyForLaravel.git

Copy all the code of .env.example & pest in newly created .env file.

Now, create a mysql local database named tenancyforlaravel. (Default)

Open terminal in the project directory.

npm install
composer update

If you want, you can generate a new key with

php artisan key:generate

Run the command for migrate table and seed the database

php artisan migrate --seed

Now, fire up 2 terminal window or 2 terminal tab & run each command separately

npm run dev
php artisan serve

Now, open and search in browser with url

http:\\localhost:8000

The default created credential for first Super-admin (Landlord) and all the Tenant's first Admin
E-mail :

a@b.com

Password :

Pa$$w0rd!

After reset, the tenants user (admin) password will be set:

123456

Note

If you want to create new landlord, you have to go through registration. & For tenant you have to create it through landlord by default there wont be any tenant available.

About

Demo | A simple demo SAAS application on Laravel. With Tenancy For Laravel with separate database for each tenant & Spaite Laravel-Permission.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages