All notable changes to mateusjunges/laravel-acl
will be documented in this file.
- Add support for PHP v8.0
- Drop support for Laravel v5.8.x
- Fix user model namespace for laravel v8.x
- Add support for Laravel v8.x
- Drop suppport for PHP v7.2 and lower
- Permission and group middleware now trhows UnauthorizedException with denied permissions and groups in exception headers (#175)
- Merge some dependabot dependencies PR
- Fixes #185
- Add support for spanish translations
- Makes the
admin
permission configurable. Now you can change the slug used asadmin
permission by this package. Check #174
- Add support for route model key bindings (#170)
- Change test suite to run on GitHub Actions instead of Travis CI.
- Fixed
facade/ignition
dependency for laravel 7.x
- Changed public method
getCorrectParameter
toprivate
onGroupsTrait
andUsersTrait
- Improved documentations
- Drop support for Laravel v5.6
- Drop support for Laravel v5.7
- Add support for Laravel v7.x
- Added
syncGroups()
method on users trait. #155
- Fix #143
- Add Ignition Solutions for Laravel ACL exceptions #141
- Fixed bug with the
group
scope. See #133
- Update dependencies for Laravel 6
- Drop support for Laravel 5.5 and older, and PHP 7.1 and older. (They can use v2.0 of this package until they upgrade.)
- Version 2.1.0 and greater of this package require PHP 7.2 and higher.
- Fix composer.json dependencies for laravel 6.0
In UsersTrait.php:
- Add option to use array as parameter for
syncPermissions()
method; - Add option to use array as parameter for
assignPermissions()
method; - Add option to use array as parameter for
assignGroup()
method; - Add option to use array as parameter for
revokePermissions()
method; - Add option to use array as parameter for
assignGroup()
method; - Add option to use array as parameter for
revokeGroup()
method;
In GroupsTrait.php:
- Add option to use array as parameter for
syncPermissions()
method; - Add option to use array as parameter for
assignPermissions()
method; - Add option to use array as parameter for
revokePermissions()
method; - Add option to use array as parameter for
assignUser()
method; - Add option to use array as parameter for
removeUser()
method;
- Update composer.json for laravel 6.0
In UsersTrait.php:
-
hasAnyPermissions()
,assignPermissions()
,syncPermissions()
,revokePermissions()
,assignGroup()
,revokeGroup
,hasAnyGroup()
,hasAllGroups()
andhasAllPermissions()
methods now works with non array params. You can read the docs here; -
Added eager loading for permissions checks.
In GroupsTrait.php:
-
assignPermissions()
,syncPermissions()
,revokePermissions()
,assignUser()
,removeUser()
,hasAnyPermissions()
andhasAllPermissions()
methods now works with non array params. You can read the docs here; -
Added eager loading for groups permissions checks.
- Now all blade directives does not need an array as parameter. You still able to check for permissions using mixed parameters, like permission id, permission slug, etc.
- Added a test class for each trait method.
- Fix middleware tests.
- Added Exception tests.
- Fixes #112
- Add
->unique()
for permission slugs (fix #109)
- Check for permissions using wildcard (fix #77)
- Hierarchical permissions middleware
- Added an artisan command to install the package
- Update package docs
- Fix #93
- Add database connection check before register gates
- Add package tests
- Continuous integration with TravisCI
- Applies code style fixes from an analysis carried out by StyleCI.
- Add a way to customize package migrations.
- Fix #75
- Removed all versions below 1.5.2 because of a bug in the
isAdmin
function, which caused infinite looping. If you use a version below 1.5.2 of this package, please upgrade as soon as possible.
- The
description
field, inpermissions
andgroups
tables provided by this package, from this version above, are optional.
- Added
revokeAllPermissions()
method - Added
assignAllPermissions()
method - Added
attachAllUsers()
method - Added
dettachAllUsers()
method
- Added
assignAllPermissions()
method - Added
revokeAllPermissions()
method - Added
revokeAllGroups()
method - Added
assignAllGroups()
method
- Added package database entity relationship model
- Updated README.md to version 1.7.0
- Changed language of the package commands to english. #69
- Fix #59
- Added exception that throws if you try to add a non existing permission to an user;
- Added exception that throws if you try to add a non existing group to an user;
- Added exception that throws if you try to add a non existing user to an group;
- From this version forward, the permission and groups can be removed from users without any alert
if you add a non existing permission/group to the
revokePermissions
orrevokeGroup
methods, as described here;