Laravel Packages

Manage Roles and Permissions in Filament with Hex Lite

Published
Manage Roles and Permissions in Filament with Hex Lite image

Filament Hexa Lite is an effortless role and permission plugin for Filament. The plugin provides an admin-only UI to manage different user roles and permissions that you can use to control access in your Filmanent app:

This plugin creates a separate admin table to manage roles, including the following features:

  • Edit roles and permissions as an admin
  • Define permissions for Resources and pages
  • Define permissions for Actions
  • Validate Access permissions

The Hex Lite plugin provides a variety of ways to check access permissions on resources, pages, widgets, etc.:

use Illuminate\Support\Facades\Gate;
 
hexa()->can('hexa.admin');
auth()->user()?->can('hexa.admin')
Gate::allows('hexa.admin')
 
// Blade:
/*
<div>
@can('hexa.admin')
// Content here ...
@endcan
</div>
*/

You can learn more about this package, get full installation instructions, and view the source code on GitHub. Check out the readme for setup and usage documentation.

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

masteringlaravel logo
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review

The latest

View all →
Queue totalSize() and JobInterrupted Event in Laravel 13.31 image

Queue totalSize() and JobInterrupted Event in Laravel 13.31

Read article
Find Unexpected Test Inputs with Fuzz for Pest image

Find Unexpected Test Inputs with Fuzz for Pest

Read article
Laravel Rulebook: Business Rules That Change by Date image

Laravel Rulebook: Business Rules That Change by Date

Read article
Taylor disabled GitHub Issues on most Laravel open-source packages. image

Taylor disabled GitHub Issues on most Laravel open-source packages.

Read article
Exclude Vendor and Default Commands in `php artisan dev` image

Exclude Vendor and Default Commands in `php artisan dev`

Read article
The Laracon Archive image

The Laracon Archive

Read article