Getting Started with OMNI Access
Overview of the OMNI Access free RBAC package: core features, quick examples, and what to expect from role-based access control in Laravel.
Overview
OMNI Access is a powerful, flexible Role-Based Access Control (RBAC) package for Laravel applications.
Free Edition: You're using the free edition which includes all essential RBAC features. See what's available in PRO → (
#comparison)
Key Features
-
✓Role Management
-
✓Permission Management
-
✓Permission Groups
-
✓User-Role Assignment
-
✓Middleware Support
-
✓Blade Directives
-
✓Basic Caching
-
✓Soft Deletes
Quick Example
// Assign role to user
$user->assignRole('admin');
// Check permissions
if ($user->hasPermission('posts.edit')) {
// Allow editing
}
// Multiple roles
$user->assignRole('editor', 'moderator');
// Check any role
if ($user->hasAnyRole(['admin', 'editor'])) {
// Has at least one role
}
// Assign role to user
$user->assignRole('admin');
// Check permissions
if ($user->hasPermission('posts.edit')) {
// Allow editing
}
// Multiple roles
$user->assignRole('editor', 'moderator');
// Check any role
if ($user->hasAnyRole(['admin', 'editor'])) {
// Has at least one role
}
Community Discussions 0
Ask questions, share step solutions, or discuss software workflows with other professionals.
Join the Community Discussion
Got stuck on a step or have a question about this configuration? Sign in to join the discussion and receive direct advice from instructors and peers.
No Discussions Yet
Have a question or found a clever tip for this guide? Start the conversation using the comment box above!