Download the PHP package omardavila/base-tenant-filament without Composer
On this page you can find all versions of the php package omardavila/base-tenant-filament. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download omardavila/base-tenant-filament
More information about omardavila/base-tenant-filament
Files in omardavila/base-tenant-filament
Download omardavila/base-tenant-filament
More information about omardavila/base-tenant-filament
Files in omardavila/base-tenant-filament
Vendor omardavila
Package base-tenant-filament
Short Description Multi-tenant Filament scaffold with Store tenant, FilamentShield and Spatie Permission
License MIT
Package base-tenant-filament
Short Description Multi-tenant Filament scaffold with Store tenant, FilamentShield and Spatie Permission
License MIT
Please rate this library. Is it a good library?
Informations about the package base-tenant-filament
Base Tenant Filament
Multi-tenant Filament scaffold with Store as tenant, FilamentShield and Spatie Permission — wired up in one command.
Requirements
- PHP ^8.2
- Laravel ^11|^12|^13
- Filament ^5.0
- bezhansalleh/filament-shield ^4.0
- spatie/laravel-permission ^6.0|^7.0
Installation
Done. Visit /admin and register your first store.
What base-tenant:install does
| Step | What changes |
|---|---|
| Publishes migrations | stores and store_users tables |
Configures config/permission.php |
teams: true, team_foreign_key: store_id |
Replaces app/Models/User.php |
Adds HasStores trait, implements FilamentUser + HasTenants |
Replaces app/Providers/Filament/AdminPanelProvider.php |
Wires tenant, registration page, Shield plugin with scopeToTenant(false), SyncShieldTenant middleware |
What you get
- Store as Filament tenant — users can belong to many stores and switch between them
- RegisterStore page — users without a store are redirected here automatically
- super_admin role created per store on registration — bypasses all Gate checks (sees everything)
- Spatie Permission teams scoped to
store_id— roles and permissions are isolated per store - FilamentShield roles excluded from tenant scoping — roles are global across the panel
Architecture
Customizing
After install, all files live in your project — edit freely:
app/Models/Store.php— add fields, relationshipsapp/Models/User.php— extend as neededapp/Filament/Pages/Tenancy/RegisterStore.php— customize registration formapp/Providers/Filament/AdminPanelProvider.php— panel config
The package models (OmarDavila\BaseTenantFilament\Models\Store) are used internally. The published App\Models\Store takes precedence once you run install.
Publishing assets individually
License
MIT
All versions of base-tenant-filament with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
filament/filament Version ^5.0
bezhansalleh/filament-shield Version ^4.0
spatie/laravel-permission Version ^6.0|^7.0
filament/filament Version ^5.0
bezhansalleh/filament-shield Version ^4.0
spatie/laravel-permission Version ^6.0|^7.0
The package omardavila/base-tenant-filament contains the following files
Loading the files please wait ...