/** * Get all cached users. * * @return \Illuminate\Database\Eloquent\Collection */ public function getCachedUsers() { return $this->cacheResults('users.all', function () { return User::all(); }); }