abdullahaldot22 / tenancyForLaravel

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo Saas Application


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


Clone the git 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 Tenants 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.


Languages

Language:PHP 58.2%Language:Blade 41.4%Language:JavaScript 0.4%Language:CSS 0.0%