app->bind( \App\Services\Link\ClickCounterStore::class, fn () => config('link.click_counter_store', 'redis') === 'array' ? new \App\Services\Link\ArrayClickCounterStore : new \App\Services\Link\RedisClickCounterStore, ); } public function boot(): void { View::composer(['partials.topbar', 'partials.topbar-qr'], function ($view) { $view->with(MobileTopbar::resolve()); }); } }