Example of a shared multitenancy data model using Laravel and MySQL
- Install docker if you don't have it https://www.docker.com
- Clone repo locally and cd into the project
- Start the docker container
make docker-start
- SSH into the docker container
./ssh.sh
- Migrate and seed
php artisan migrate:fresh php artisan db:seed
- Connect to MySQL shell:
./mysql.sh
- Grab an email address from the users table
select email from users limit 5;
- Visit http://localhost:8000/ and click login
- Use the email address with the password "secret"
- host: 127.0.0.1
- port: 3306
- username: dev
- password: dev
- database: test
This project is meant to showcase a relational data model and Laravel Eloquent implementation for shared multitenancy. It is not meant to be run in a production environment without significant changes.