ashrafic/filament-white-label
| Install | |
|---|---|
composer require ashrafic/filament-white-label |
|
| Latest Version: | v1.0.8 |
| PHP: | ^8.2 |
| License: | MIT |
| Last Updated: | Jun 27, 2026 |
| Links: | GitHub · Packagist |
Filament White-Label
Total panel rebranding. For you and every tenant. No code.
Logo, colors, fonts, layout, CSS, footer — every tenant gets their own brand. Or rebrand your own portal in a single-tenant setup. Install, add one line to your PanelProvider, done.
Installation
composer require ashrafic/filament-white-label
php artisan white-label:install
php artisan migrate
Panel Registration
Two pieces — both required for the settings page to appear:
use FilamentWhiteLabel\Resources\WhiteLabelSettingsResource;
$panel
->whiteLabel() // wires up branding
->resources([
WhiteLabelSettingsResource::class, // adds the nav item
]);
->whiteLabel()enables white-label functionality across the panelWhiteLabelSettingsResourceregisters the settings page — without it, no nav item appears
A White Label nav item appears with three sub-pages: Brand, Layout, Advanced.
Tenant Model Setup (Optional)
Add the HasWhiteLabel trait to your tenant model only if you want default settings eagerly created when a new tenant is created:
use FilamentWhiteLabel\Traits\HasWhiteLabel;
class Team extends Model
{
use HasWhiteLabel;
}
The trait hooks into the created event to auto-create a default settings record.
Without the trait, defaults are created lazily — only when the White Label page is first visited. Skip this step for single-tenant setups, or if you don't need the settings row to exist before page visit.
Guides
Full docs at docs.ashraficlabs.com/filament-white-label
| Getting Started | Overview, requirements, quick start |
| Installation | Composer, install command, trait setup |
| Configuration | Full config reference — every option |
| Features Overview | All customization surfaces at a glance |
| Brand Settings | Name, logos, colors, fonts, CSS theme, custom CSS |
| Layout Settings | Navigation, sidebar, breadcrumbs, dimensions, footer |
| Advanced Settings | SPA mode, notifications, density, modals, transitions |
| Branded Login | Tenant-branded auth page |
| Integration Patterns | Macro, granular trait, manual, conditional |
| Resolution Flow | Tenant → panel → global → config defaults |
| Cache & Security | Caching strategy, CSS sanitization, threat mitigations |
| Events | WhiteLabelSettingsSaved, WhiteLabelSettingsDeleted |
Screenshots
| Brand Identity | Colors |
|---|---|
![]() |
![]() |
| Typography, Styling & Custom CSS | Layout: Navigation, Sidebar, Display |
|---|---|
![]() |
![]() |
| Dimensions & Footer | Advanced Settings |
|---|---|
![]() |
![]() |
What You Can Customize
| Category | Highlights |
|---|---|
| Brand identity | Name, logo (light + dark), logo height, favicon |
| Colors | 6 roles — palette presets + custom hex picker |
| Typography | 49 Google Fonts via CDN |
| CSS theme | Border radius, input radius, badge shape, shadow intensity |
| Layout | Top bar, top nav, collapsible sidebar, breadcrumbs |
| Dimensions | Content width, sidebar width, heading size |
| Density | Font scale, form density, table row density, modal size |
| Behavior | SPA mode, unsaved changes alerts, database notifications |
| Custom CSS | Sanitized CSS injection (max 50KB) |
| Login page | Branded auth experience (extends native Filament login) |
| Footer | Custom text + dynamic label/URL links |
| i18n | Full translation support — all ~230 strings translatable |
Operating Modes
| Mode | When | How |
|---|---|---|
| Multi-tenant | Filament::getTenant() resolves |
Per-tenant settings record |
| Single-tenant | No tenant, global record exists | One global settings record |
| Config-only | No records exist | config('filament-white-label.defaults.*') |
Works before and after you adopt multi-tenancy.
Testing
composer test # Pest — 24 tests, 167 assertions
composer lint # Pint
License
MIT. See LICENSE.md.
Full docs at docs.ashraficlabs.com/filament-white-label
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v1.0.8 | ^8.2 | MIT | |
| v1.0.7 | ^8.2 | MIT | |
| v1.0.6 | ^8.2 | MIT | |
| v1.0.5 | ^8.2 | MIT | |
| v1.0.4 | ^8.2 | MIT | |
| v1.0.3 | ^8.2 | MIT | |
| v1.0.2 | ^8.2 | MIT | |
| v1.0.1 | ^8.2 | MIT | |
| v1.0.0 | ^8.2 | MIT |





