Spatie\Permission\PermissionRegistrar::getPermissions PHP Метод

getPermissions() защищенный Метод

Get the current permissions.
protected getPermissions ( ) : Illuminate\Database\Eloquent\Collection
Результат Illuminate\Database\Eloquent\Collection
    protected function getPermissions()
    {
        return $this->cache->rememberForever($this->cacheKey, function () {
            return app(Permission::class)->with('roles')->get();
        });
    }