entrust
entrust copied to clipboard
Role-based Permissions for Laravel 5
Laravel Framework 5.4.36 in my server i use the redis server for cache and also use some libraries redis, predis, jwt and zizaco entrus, also see with specific version like...
If you do not specify the ttl parameter in the config/cache.php file, then the role caching does not work.
Hello! I'm using envoy to deploy my laravel on VPS, and there is some error: ``` [-@-]: Generating optimized autoload files [-@-]: Illuminate\Foundation\ComposerScripts::postInstall [-@-]: > php artisan optimize [-@-]: PHP...
Added support for Laravel 11 and update PHP to version >= 8.
### Improvements Summary - Added precise type hints for parameters and return types (e.g. `?Authenticatable`, `void`) - Used modern PHP features like nullsafe operator (`?->`) and arrow functions - Reduced...
## Summary of Improvements - Introduced proper type hinting for parameters and return values - Refactored complex logic into smaller, reusable helper methods - Used `??` for cleaner default handling...
## Summary of Improvements - Added precise return types for roles() and boot method - Renamed `boot()` to `bootEntrustPermissionTrait()` to prevent trait conflicts - Replaced `sync([])` with `detach()` for better...
## Summary of Improvements - Stronger type hints for properties and methods - Separated logic into normalizeRoles() and unauthorized() helpers - Used (string) cast for safer role handling - Switched...
## Summary of Improvements - Added property and method type hints for better safety - Switched to `Illuminate\Http\Request` instead of plain `$request` - Extracted `normalizePermissions()` to improve method clarity -...