/** * Get the current permissions. * * @return \Illuminate\Database\Eloquent\Collection */ protected function getPermissions() { return $this->cache->rememberForever($this->cacheKey, function () { return Permission::with('roles')->get(); }); }