Releases: tpg/deadbolt
v0.2.5
Laravel 7 support!
Also fixed a few bugs around the `User::saved()~ method.
v0.2.4
A couple of bug fixes around the handling of the permissions column on the user model.
- Fixed a bug that was not assigning permissions correctly when the attribute was cast to
json
. - Fixed a bug that was not using the
column
config option correctly. - Renamed the
User::mergePermissions
method toUser::assignPermissions
.
v0.2.3
Fixed a bug that was not sourcing roles from the set driver correctly.
The User
class constructor has been altered to now accept the roles array.
v0.2.2
Fixed a bug causing some problems if the permissions
attribute on the user model is cast to json
.
v0.2.1
The Deadbolt::permissions()
method will now accept role names to filter the returned permissions.
v0.2
New driver-based permissions and roles source.
By default we include an ArrayDriver
which fetches permissions from the default config, but now opens the potential custom drivers, like a DatabaseDriver
, EloquentDriver
or even HttpDriver
.
There's a few new tests.
v0.1
A whole new API.
I feel much happier about this now.
Updated README to reflect the new system.