Download the PHP package hexters/hexa-lite without Composer
On this page you can find all versions of the php package hexters/hexa-lite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hexters/hexa-lite
More information about hexters/hexa-lite
Files in hexters/hexa-lite
Package hexa-lite
Short Description Filament Hexa is a effortless role and permission management plugin for Filament
License MIT
Informations about the package hexa-lite
Filament Hexa Lite
Filament Hexa Lite is an effortless role & permission plugin for Filament, inspired by the concept of hexters/ladmin. This concept facilitates managing each role and permission inline with code and provides an easy-to-understand interface.
This plugin is intended only for Administrators, as it has a separate admin table from the user table provided by Laravel. Additionally, this plugin will replace the auth.php
configuration file.
About Filament
FilamentPHP is a lightweight and flexible PHP framework designed for building web applications. It aims to simplify application development by providing a clear structure and high modularity. The framework emphasizes speed, efficiency, and comes with many built-in features that facilitate effective web application development.
Installation
Note
You need to install the filament package first. You can refer to the official site at FilamentPHP
You can install it by running the command below:
Then, proceed with the installation of the hexa plugin:
Install database migrations:
Create a superadmin account for admin login:
Plugin Setup
Add the Filament HexaLite
plugin to the created panel. If you haven't created one yet, see how to do it here Creating a new panel.
Declaring Access Permissions
Resource & Page
To declare access permissions for Resources and Pages, for Clusters you need to upgrade to the hexters/hexa package.
Actions, etc.
You can use the visible()
method on several Class Components
. For example, let's try it on a button.
For giving access to classes extended to Filament\Resources\Pages\EditRecord
, Filament\Resources\Pages\CreateRecord
, Filament\Resources\Pages\ListRecords
, Filament\Resources\Pages\ViewRecords
, you can use:
Checking Access Permissions
Access can be granted to Resources, Pages, Widgets, Button Actions, etc. The access can be given as shown below.
Using the hexa utility function:
Using Laravel's auth can function:
Using Laravel's Gate class:
In a blade template, you can use it as shown below.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Issue
If you encounter any issues with this plugin, you can submit them to the repository: Filament Hexa Lite Issue
Thank you for using this plugin. We hope it speeds up your process in creating powerful applications.
Happy Coding 🧑💻 🧑💻 🧑💻