Closed dependabot[bot] closed 2 years ago
I don't think we should remove support for v3 and v4 - but we should add support for v5, its release date (aug 2021) is far enough already.
@promatik can you please check if the v5 release brings any breaking changes for us? From what I can tell https://github.com/spatie/laravel-permission/pull/1817 is a good fix. Something that I remember I wanted too (can't remember why though... maybe something to do with the @can
helpers not working with our guard... damn my memory? We need to make sure we're not introducing a change in behaviour as a non-BC here.
You should be able to install v5 by doing composer require spatie/laravel-permission:"^5.0 as 4.99.0"
but check that it actually got the new version.
@tabacitu I tested the new version, and everything is working as expected 👌
Anyway, regarding that new feature, as far as I can understand, it's there to get the current auth guard, and use @can()
or @role()
automatically with that guard.
But I could only use those blades directives when config('auth.defaults.guard')
has the our backpack
guard, without that it doesn't work – I'm on demo.
Also have tested this and looking forward to seeing it merged!
A newer version of spatie/laravel-permission exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.
Updates the requirements on spatie/laravel-permission to permit the latest version.
Release notes
Sourced from spatie/laravel-permission's releases.
Changelog
Sourced from spatie/laravel-permission's changelog.
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)