register(AgeGroupCountBlock::class); app(DashboardFactory::class)->register(MemberPaymentBlock::class); app(DashboardFactory::class)->register(TestersBlock::class); app(DashboardFactory::class)->register(EfzPendingBlock::class); app(DashboardFactory::class)->register(PsPendingBlock::class); ComponentAttributeBag::macro('mergeWhen', function ($condition, $key, $attributes) { /** @var ComponentAttributeBag */ $self = $this; return $condition ? $self->merge([$key => $attributes]) : $self; }); Livewire::resolveMissingComponent(function ($name) { 'modules.dashboard.components.dashboard-component'; if (str($name)->startsWith('modules.')) { return str($name)->explode('.')->map(fn ($name) => str($name)->studly()->toString())->implode('\\'); } return null; }); } /** * Bootstrap services. */ public function boot(): void { } }