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 →
Statamic Mailables Viewer Previews Laravel Emails in the Control Panel image

Statamic Mailables Viewer Previews Laravel Emails in the Control Panel

Read article
Laravel Tackle: Run an AI Coding Agent in Your Laravel App image

Laravel Tackle: Run an AI Coding Agent in Your Laravel App

Read article
Queue::forward(): Reroute Laravel Queues in One Place image

Queue::forward(): Reroute Laravel Queues in One Place

Read article
Laravel Read-Through Filesystem: Lazy Storage Migration image

Laravel Read-Through Filesystem: Lazy Storage Migration

Read article
Read-Through Disks and Debounced Listeners in Laravel 13.26 image

Read-Through Disks and Debounced Listeners in Laravel 13.26

Read article
Lerd: A Free, Open Source Herd Alternative for Linux and macOS image

Lerd: A Free, Open Source Herd Alternative for Linux and macOS

Read article