A complete example of a multi-tenant Laravel application. It is only a demo, not a real application to use for production.
Multi-tenant SaaS, or Software as a Service, refers to a type of software architecture where a single instance of the software application serves multiple customers, known as tenants. Each tenant shares the same underlying infrastructure and code base, but their data and configurations are kept separate and isolated from one another.
Open your favourite terminal of and follow the instructions below to run the complete project on your machine!
Clone the github repository by running the following command
git clone https://github.com/tarikulwebx/Laravel-Multi-Tenant.git Navigate to the project directory
cd Laravel-Multi-Tenant Clone .env.example file and save as .env. Change environment variables as your need.
Run following command to generate app key.
php artisan key:generate Migrate and seed by running the command
php artisan migrate --seed Run the project
php artisan serve Open the project on http://localhost:8000/ link and tenants directory will be like the http://<tenant_domain_name>.localhost:8000/
Be sure to give me a star on this project.