Allows the creation of multiple e-commerce sites, each with its own database, subdomain and authentication session.
See the
without-packages
branch for a manual implementation with a single database.
- Laravel
- stancl/tenancy
- Filament
- PostgreSQL
- Docker
- Tailwind
Clone this repo and run commands in the order below:
composer install
yarn install
cp .env.example .env # And edit the values
php artisan key:generate
Then start Docker containers using Sail:
sail up -d
Run the migrations
sail artisan migrate:fresh --seed
sail artisan tenants:migrate-fresh
sail artisan tenants:seed
Open another terminal tab and run the command below to compile front-end assets:
yarn run dev
Now you can access the project at http://localhost in your browser.