public function register() { $this->app->singleton(Feed::class, function ($app) { // @todo: Figure out how to cache without running into the simple xml issue // return app('cache')->remember('feed', $minutes = 1, function () { return (new Rss())->feed(config('customize.rss_url')); // }); }); $this->app->singleton(RssFeed::class, function ($app) { return RssFeed::fromFeed($app->make(Feed::class)); }); }