Releases: tpg/deadbolt
v1.1.3
- The
User::permissions()
method has been deprecated in favour of the equality usefulUser::all()
method in version 2.
v1.1.2
Small dependency update to the laravel/framework
requirement because of a security issue.
v1.1.1
Did some cleaning up. There's some big changes coming in version 2 which I'll hopefully start on in the not to distant future.
The first big change to note is the removal of "groups". I've added deprecation tags and updated the README. Groups make Deadbolt overly complicated and they've always felt like a less than stellar feature. Proper roles would provide a lot more functionality. It would be a far better idea to create roles around permissions provided by Deadbolt instead of using groups.
v1.1.0
Support for Laravel 8 and PHP 8.
v1.0.1
Laravel 8 support.
Small update to DriverInterface::groups
method that accepts to a single boolean.
v1.0.0
I haven't made any changes to Deadbolt since v0.3.1 and it's being used in a fair number of places. So I figured it was a good time for a 1.0 release. There are some things I might like to change, but I'm happy with the API as it is now. So v1.0. It's the same as 0.3.1, but just a new version number.
v0.3.1
Added strict type declaration.
v0.3.0
A bunch of changes and additions.
THIS RELEASE CONTAINS BREAKING CHANGES. Please see CHANGELOG.md
.
- Permissions in the default
deadbolt.php
config file can now have descriptions. - Drivers must now return an array of permissions as keys with permission descriptions, or
null
if there isn't one. - Changed the
ArrayDriver
to return the new permissions array format. - Can now work on multiple users at a time. There is a
Deadbolt::users()
method that take a collection or array of user objects and returns an instance ofUserCollection
. - The
UserCollection
class has a bunch of additional methods for working with the collection. - Renamed
roles
togroups
. The principle is the same, but they're not roles, so we've renamed them.
v0.2.7
Added a new sync
method.
A simple convenience method which does the same thing as revokeAll()->give()
.
v0.2.6
Renamed the Deadbolt\Deadbolt
class too Deadbolt\DeadboltService
.
Just because it was causing some confusion in IDEs with the Deadbolt
facade class.