jeffersongoncalves / filament-hidden-action
Filament hidden action that allows you to define actions without rendering them in the UI.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/jeffersongoncalves/filament-hidden-action
Requires
- php: ^8.2
- filament/actions: ^4.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.21
- orchestra/testbench: ^9.0|^10.0
README
Filament Hidden Action
This package provides a HiddenAction for Filament, allowing you to define actions that are not visible in the UI but can still be triggered programmatically or via keyboard shortcuts.
Requirements
- PHP 8.2 or higher
- Filament 4.0 or higher
Installation
You can install the package via composer:
composer require jeffersongoncalves/filament-hidden-action
Usage
The HiddenAction can be used just like any other Filament Action, but it won't render any button or link in the UI. This is useful when you need to trigger an action programmatically or via a keyboard shortcut without showing it.
use JeffersonGoncalves\Filament\HiddenAction\HiddenAction; HiddenAction::make('hidden-action') ->action(function () { // Your logic here });
Development
You can run code analysis and formatting using the following commands:
# Run static analysis composer analyse # Format code composer format
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
