Releases: santigarcor/laratrust
Releases · santigarcor/laratrust
Fix seeder creation
Fix Laravel 5.5 Commands compatibility
Enable Laravel >=5.1.40 support
Merge pull request #169 from santigarcor/KKSzymanowski-patch-1 Add a note about config cache clearing to the docs
Teams feature now supported
Added
- Added optional teams feature to the roles and permissions workflow.
- Added
allPermissions
method to theLaratrustUserTrait
. - Added
required_all
option to the middlewares. - Can pass a pipe separated string when checking roles and permissions.
- Added
wherePermissionIs
query scope to theLaratrustUserTrait
. - Added magic method to check permissions with can (e.g.
$user->canManageUsers()
) - Added automatic package discovery for Laravel 5.5.
Changed
- Changed minimum Laravel version to 5.2.
- Changed the
laratrust.php
file structure.
Multiple user models now supported
- Added support to multiple user models.
- Added
hasPermission
andisAbleTo
methods. - Changed the internal calls of the
can
method to thehasPermission
method. - Minimum Laravel version is 5.1.
- Removed the route filters funtionality since it was only working in Laravel 5.0.
New Ownable Interface
- New Ownable interface.
- New
canAndOwns
andhasRoleAndOwns
methods.
With this release you can check easily if a user can/has role and owns an object. If the ownership is resolved with a complex logic you can do it by using the Ownable interface.
3.1.0
- Added Users - Permissions feature.
- Changed commands names.
- Added SQLServer support to the seeder.
3.0.5
- Added model's ownership
- Now migration generation uses all config values
Fix typo in middleware
- Solves typo in the middlewares #24
Middleware can redirect or abort
- Added the option in the middleware to abort or redirect
- Added
'middleware_handling' => 'abort'
and'middleware_params' => '403'
toconfig/laratrust.php