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; }); } /** * Bootstrap services. */ public function boot(): void { } }