/** * Update config file with followers * @return void */ public function updateTwitterDashboardStats() { $followers = $this->twitterContent->fetchFollowers(); $config = $this->config->first(); $config->twitter_followers = $followers['followers_count']; $config->save(); }