{"repo":"scabarcas17/laravel-permissions-redis","free":true,"listed":false,"github":"https://github.com/scabarcas17/laravel-permissions-redis","clone":"git clone https://github.com/scabarcas17/laravel-permissions-redis.git","description":"A Redis-powered roles and permissions package for Laravel designed to eliminate repetitive database queries and deliver high-performance authorization.","language":"PHP","stars":39,"topics":["laravel","performance","permissions","redis","laravel-package"],"license":"MIT","category":"databases-storage","readme_excerpt":"Laravel Permissions Redis A Redis-backed roles and permissions package for Laravel with a Spatie-compatible API. It keeps each user's resolved permissions in Redis and invalidates the cache surgically (one user at a time) instead of flushing everything on every change. Inspired by spatie/laravel-permission, the de facto standard for roles and permissions in Laravel. This package keeps its familiar API ( hasRole , hasPermissionTo , assignRole , Blade directives, middleware) but changes the storage layer: Spatie caches the permission registry yet still lazy-loads each user's role and permission relations from the database per request (about 4 queries), while this package keeps the resolved per-user set in Redis (1 query). The goal is to take authorization load off the database and avoid full cache-flush stampedes on permission changes, not to be dramatically faster. For most apps, Spatie with its cache is simpler and enough; this package earns its place when the database is your bottleneck or permissions change often at scale. --- Table of Contents - Requirements - Architecture - Installation - Configuration - Usage Guide - Setting Up the User Model - Creating Roles and Permissions - Assigning Roles and Permissions - Checking Roles and Permissions - Middleware - Blade Directives - Gate Integration - Wildcard Permissions - Super Admin - Cache Management - UUID / ULID Support - Laravel Octane - Multi-Tenancy - Integrations - Conventions - API Reference - Testing - Comparison with","default_branch":null,"files":null,"tree":[],"storefront":"/r/scabarcas17","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/scabarcas17/laravel-permissions-redis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}