filahq / filament-assist
Filament Assit to create Action with modal form for support / feedback / bug report
Fund package maintenance!
FilaHQ
Requires
- php: ^8.1
- filament/filament: ^3.0
- spatie/laravel-package-tools: ^1.15.0
README
Filament Assit to create Action with modal form for support / feedback / bug report.
Installation
You can install the package via composer:
composer require filahq/filament-assist
You can run the install command:
php artisan filament-assist:install
Setup
1. Register the Plugin
Add the following code to your panel provider to register the plugin and enable access to all assist resources in your Filament panel:
use FilaHQ\FilamentAssist\FilamentAssistPlugin; class AdminPanelProvider extends PanelProvider { public function panel(Panel $panel): Panel { return $panel ->plugins([ FilamentAssistPlugin::make() ]); } }
2. Choose How to Display
You have two ways to add the assist form:
Option 1: As a Page Action
use FilaHQ\FilamentAssist\Actions\AssistAction; class YourPage extends Page { protected function getHeaderActions(): array { return [ AssistAction::make() ]; } }
Option 2: As a Livewire Component
// In your blade file
<livewire:assist label="Get Help" type="support">
3. Customize (Optional)
Set a default assist type:
FilamentAssistPlugin::make() ->defaultAssistType("support")
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.