app->singleton(TmdbClient::class, function ($app) { return new TmdbClient( $app['config']['services']['tmdb']['key'], $app['config']['services']['tmdb']['use_cache'], $app['config']['services']['tmdb']['cache_ttl'], ); }); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return [TmdbClient::class]; } /** * Bootstrap services. * * @return void */ public function boot() { // } }