Roles & Permissions
Understanding roles and permissions in Larasonic
π Roles & Permissions
Larasonic uses Jetstreamβs simple RBAC (Role-Based Access Control) implementation. While not as feature-rich as dedicated packages like Spatie Permissions, it provides a straightforward way to manage team-based roles and permissions.
For more detailed information and advanced usage, visit the Laravel Jetstream
π οΈ Current Implementation
Each team member can be assigned a role, and each role has specific permissions. Roles and permissions are defined in App\Providers\JetstreamServiceProvider
.
β Checking Permissions
You can check permissions using the methods provided by the HasTeams
trait:
π Looking for More?
Need a more robust roles and permissions system? Vote for enhanced RBAC features in our roadmap.
The current implementation is suitable for basic team-based permission scenarios. For complex permission requirements, consider implementing a dedicated package like Spatie Permissions.