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

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
Laravel AI SDK and Laravel MCP Security Fixes: Update Now image

Laravel AI SDK and Laravel MCP Security Fixes: Update Now

Read article
Mailbox for Laravel: Preview and Test Rendered Email image

Mailbox for Laravel: Preview and Test Rendered Email

Read article
Count Worker Crashes as Job Exceptions in Laravel 13.34 image

Count Worker Crashes as Job Exceptions in Laravel 13.34

Read article
Elastic Bridge: Eloquent-Style Queries for Elasticsearch and OpenSearch image

Elastic Bridge: Eloquent-Style Queries for Elasticsearch and OpenSearch

Read article
Laravel Release Cycle: Versions, Support Policy, and Dates image

Laravel Release Cycle: Versions, Support Policy, and Dates

Read article
Unlearn.dev goes free for a weekend, October 10 and 11 image

Unlearn.dev goes free for a weekend, October 10 and 11

Read article