OMNI Access
v1.3.0
Free
~10 min read
Installing OMNI Access
Install the omni-access package via Composer, run the installer with seed data, add the hasRoles/hasPermissions traits to your User model.
01
Step 1 of 4
Requirements
- PHP 8.2 or higher
- Laravel 10.x, 11.x, or 12.x
- Composer
02
Step 2 of 4
Step 1: Install via Composer
composer require rbac-suite/omni-access
composer require rbac-suite/omni-access
03
Step 3 of 4
Step 2: Run Installation Command
# Install with default data
php artisan omni-access:install --seed
# Install without seeding
php artisan omni-access:install
# Install with default data
php artisan omni-access:install --seed
# Install without seeding
php artisan omni-access:install
04
Step 4 of 4
Step 3: Add Traits to User Model
<?php
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use RbacSuite\OmniAccess\Traits\HasRoles;
use RbacSuite\OmniAccess\Traits\HasPermissions;
class User extends Authenticatable
{
use HasRoles, HasPermissions;
// Your existing code...
}
✓ Installation Complete! You can now start using OMNI Access in your application.
<?php
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use RbacSuite\OmniAccess\Traits\HasRoles;
use RbacSuite\OmniAccess\Traits\HasPermissions;
class User extends Authenticatable
{
use HasRoles, HasPermissions;
// Your existing code...
}
Community Discussions 0
Ask questions, share step solutions, or discuss software workflows with other professionals.
Moderated Community
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.
Guide Checklist
4 Steps
Tutorial Progress
0%
No Discussions Yet
Have a question or found a clever tip for this guide? Start the conversation using the comment box above!