All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog, and this package adheres to Semantic Versioning.
- Laravel 7 support
- References to deprecated Laravel helper methods
- Laravel 5 support
- PHP 7.2 is now the minimum supported version
PermissionNotFoundException
will now be thrown if a permission is not found during check. You may catch and report against this from within your application ✌️
- No longer using the
firstOrFail
method when checking for permissions, which means no more discrepancies when caching is enabled hasPermissionThroughRole
now checks the role directly for permissions
- Laravel 6.x support
- New blade directives;
@anyrole
,@elseanyrole
,@endanyrole
,@allroles
,@elseallroles
, and@endallroles
hasPermissionFlags
andhasPermissionThroughFlag
added to Role contract- Experimental caching layer; enable within your
shinobi
config file UserHasAllRoles
andUserHasAnyRole
middlewares- Configuration options to customize table names
- Complete test coverage
@role
Blade directive now uses Laravel'sBlade::if()
implementation, which supports@role
,@elserole
, and@endrole
- Incorrect migration publish path