Chris Brown
Chris Brown
This is isolated to your tests? If so, can you update the Issue Title to include that factor. This package's test suite does extensive testing of adding and checking roles...
> I needed to use a slug (explicitly not use "name" column), and to check against it In cases like this, instead of making broad package changes, I typically just...
I think this suggests that something about your `.env.staging` file is different from `.env.develop`, etc, in terms of your cache configuration.
Is it correct to presume that your intention is that setting multiple teams into the session is only for the purpose of querying permission/ability authorization against all specified multiple teams?...
@sts-ryan-holton You mentioned that part of the concern you raised is related to lazy-loading. Does the lazy-loading issue resolve when using v`6.13.0` (Ref: #2776 ) ?
This appears to work without errors: ```php public function getAbilitiesAttribute(): array { try { return $this ->loadMissing(['roles', 'roles.permissions', 'permissions']) ->getAllPermissions()->pluck('name')->flatten()->toArray(); } catch (\Exception $err) { } return []; } ```
> I don't want to load it everywhere via my User model though. Do you mean that you'd just prefer that this package build it into the trait, so that...
We should probably start by expanding the test suite to account for using `$casts` with enums. That'll make it more clear what dependencies are related to this. I think "fixing"...
In the meantime you can still use enums without using `$casts`. That will let the existing functionality simply convert the enums to their string values when encountered. Docs have been...
Notes to self: Ref #2609 Ref #2616 Ref https://github.com/spatie/laravel-permission/blob/main/docs/basic-usage/enums.md - Contracts will have to be changed, so targeting `v7` for this due to breaking change. - Will also drop PHP...