Skip to content

Latest commit

 

History

History
58 lines (32 loc) · 1.47 KB

README.md

File metadata and controls

58 lines (32 loc) · 1.47 KB

Filament Tenancy Skeleton

Warning: This code is for an older version of Filament (2.x). Newer versions support basic multi-tenancy using teams. It is not guaranteed to work with Filament 3.x due to certain complexitities related to how storage is handled. If you still wish to use stancl/tenancy for your projects with filament, you can check this code as a reference.

Skeleton using Filament 2.x & Tenancy for Laravel 3.x. This will give a Filament Admin based tenant application, and basic Breeze based central admin application.

Installation

  • Clone the repository

git clone https://github.com/sivarajd/filament-tenancy-skeleton.git your-app-name

cd your-app-name

composer install

  • Copy .env.example to .env

cp .env.example .env

  • Generate app key

php artisan key:generate

  • Edit .env file to add database credentials

  • Migrate & seed the database

php artisan migrate --seed

php artisan tenants:seed

  • Install node modules & build vite resources

npm install
npm run build

Note:

This skeleton uses Subdomain based tenancy by default. If you want to change it, check these files

  • config/filament.php
  • config/livewire.php
  • routes/tenant.php