app->singleton(RebrickableClient::class, function ($app) { $config = $app['config']->get('services.rebrickable'); return new RebrickableClient($config); }); } /** * Bootstrap services. */ public function boot(): void { // } }