Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Rbac

Laravel Rbac Laravel Package

huang-yi/laravel-rbac

Laravel RBAC package for assigning roles and permissions to users and protecting routes with middleware. Includes Blade directives and helpers for permission checks, plus commands to manage roles, permissions, and their relationships in your application.

View on GitHub
Deep Wiki
Context7

A RBAC package for Laravel.

Frequently asked questions about Laravel Rbac
What is huang-yi/laravel-rbac used for?
It is a Laravel RBAC package for assigning roles and permissions to users and protecting routes with middleware. It also includes Blade directives and helpers for permission checks. Use it when you need straightforward role and permission storage in a Laravel application.
How do I install huang-yi/laravel-rbac in a Laravel app?
Install it with Composer using the package name, then follow the repository setup steps for service provider registration and migrations. Because the last release was in June 2020, test installation in a sandbox on your exact Laravel and PHP versions first. Do not assume current Laravel compatibility.
Which Laravel and PHP versions does this RBAC package support?
The package has no recent release activity; its last release was June 2020, so supported Laravel and PHP versions must be verified from its Composer constraints and a compatibility spike. Treat Laravel and PHP compatibility as a hard gate before adopting it. Newer Laravel versions may require a fork.
How does huang-yi/laravel-rbac protect routes with roles and permissions?
It provides middleware for protecting routes based on roles and permissions, according to the package description. Confirm the middleware aliases and registration details in the repository documentation. Keep package-specific middleware usage behind application authorization conventions where possible.
Does huang-yi/laravel-rbac integrate with Laravel Gates and Policies?
The package is Laravel-native, but the available context does not confirm clean Gate and Policy integration. It is best treated as an implementation detail behind application-owned authorization interfaces. Prove that Gates and Policies can remain the application-facing contract during evaluation.
Can I use Blade directives and helpers for permission checks with this package?
Yes, the package includes Blade directives and helpers for permission checks per its description. Use them for view-level checks, but keep authorization decisions in policies or services for sensitive actions. Verify the exact directive and helper names in the repository.
What commands does huang-yi/laravel-rbac provide for managing roles and permissions?
The description mentions commands to manage roles, permissions, and their relationships. Exact command names and behavior should be confirmed from the repository README or source. Budget time to test seeders, rollbacks, and existing user data handling.
Is huang-yi/laravel-rbac suitable for production use?
It is medium-to-high risk as a production dependency because of stale Laravel compatibility, low adoption, and unknown test coverage. Use it only after a compatibility spike, security review, and a narrow pilot with rollback criteria. A fork-and-own strategy may be needed.
Does huang-yi/laravel-rbac support multi-tenancy, role hierarchy, caching, or audit logs?
The available context does not confirm support for multi-tenancy, scoped roles, role hierarchies, caching, or auditability. These are key diligence questions before using it in a SaaS or regulated environment. If you need fine-grained ABAC or delegated administration, this package alone is unlikely to be sufficient.
What are alternatives to huang-yi/laravel-rbac for Laravel authorization?
Alternatives include Laravel's built-in Gates and Policies, other actively maintained Laravel permission packages, or a custom authorization layer. Compare maintenance activity, Laravel version support, test coverage, and migration lock-in. Keep role and permission checks behind internal interfaces so you can replace the package later.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo