Skip to content

Facades ​

Modularous registers 21 Laravel facades, all under the Unusualify\Modularous\Facades\ namespace. Each facade is an alias to a bound service container entry, providing static-style access to the underlying service class.

Overview ​

FacadeAccessorUnderlying Service
ModularousmodularousUnusualify\Modularous\Modularous
ModularousCachemodularous.cacheModularousCacheService
ModularousFinderFinder::classSupport\Finder
ModularousLogmodularous.logIlluminate\Log\LogManager (dedicated channel)
ModularousRoutesSupport\ModularousRoutes::classSupport\ModularousRoutes
ModularousViteSupport\ModularousVite::classSupport\ModularousVite
Navigationmodularous.navigationModularousNavigation
Redirectmodularous.redirectRedirectService
Utmmodularous.utmUtmParameters
FilepondFilepondServices\Filepond / FilepondManager
Coveragecoverage.serviceCoverageService
CurrencyExchangecurrency.exchangeCurrencyExchangeService
MigrationBackupmigration.backupMigrationBackupService
RelationshipGraphmodularous.relationship.graphCacheRelationshipGraph
Registerauth.registerRegisterBrokerManager
HostRoutingunusualify.hostingSupport\HostRouting
HostRoutingRegistrarunusualify.hostRoutingSupport\HostRouting
SystemSettingssystem.settingsModules\SystemSetting\Services\SystemSettingsService
CmsSettingscms.settingsModules\Cms\Services\CmsSettingsService
SiteSettingssite.settingsModules\Cms\Services\SiteSettingsService
UFinder (deprecated)Finder::classSupport\Finder

Settings facades share one API and differ by backing store / context routing — see Settings Services.

Usage Pattern ​

All Modularous facades follow standard Laravel facade usage:

php
use Unusualify\Modularous\Facades\Modularous;
use Unusualify\Modularous\Facades\ModularousCache;

// Resolve a module
$module = Modularous::find('Blog');

// Cache a result scoped to a module route
$items = ModularousCache::remember($key, 3600, fn() => $repo->all(), 'Blog', 'posts');

Facades are registered in BaseServiceProvider and are available everywhere in the Laravel application after the service provider boots.