Filament Crisp
Filament plugin for Crisp: renders the live chat widget in your panels and adds a settings page, powered by Spatie Laravel Settings.
#Filament Crisp
Filament plugin for Crisp — live chat widget for customer support — with a settings page powered by Spatie Laravel Settings. Manage Crisp from the Filament admin panel; the script is injected before </body> of every panel page.
Built on top of jeffersongoncalves/laravel-crisp.
#Compatibility
| Branch | Filament | Package version |
|---|---|---|
| 1.x | 3.x | ^1.0 |
| 2.x | 4.x | ^2.0 |
| 3.x | 5.x | ^3.0 |
#Installation
composer require jeffersongoncalves/filament-crisp:"^3.0"
Publish the settings migrations and run them:
php artisan vendor:publish --tag=crisp-settings-migrations
php artisan migrate
#Usage
use JeffersonGoncalves\Filament\Crisp\CrispPlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ CrispPlugin::make(), ]); }
The plugin registers a Crisp settings page and injects the script before </body> of every panel page once the settings are complete.
| Field | Label |
|---|---|
website_id |
Website ID |
identify_users |
Identify signed-in users |
only_when_open |
Only during opening hours |
#Identify users and opening hours
- Identify signed-in users sends the panel user's name and email to Crisp.
- Only during opening hours hides the chat while laravel-open-hours says you're closed — pair it with filament-open-hours to edit the schedule from the panel.
#Disable the Settings Page
CrispPlugin::make() ->settingsPage(false),
To render the script outside Filament, add @include('crisp::script') to your own layout.
#Requirements
- PHP 8.2 or higher
- Filament 5.x
#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.