Skip to content

Latest commit

 

History

History
69 lines (59 loc) · 1.38 KB

README.md

File metadata and controls

69 lines (59 loc) · 1.38 KB

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.