Skip to content

Skeleton for using Filament & stancl/tenancy together in a Laravel SAAS application

Notifications You must be signed in to change notification settings

sivarajd/filament-tenancy-skeleton

Repository files navigation

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

About

Skeleton for using Filament & stancl/tenancy together in a Laravel SAAS application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published