A Filament plugin for integrating Userback feedback widget.
composer require coddin-web/filament-userback-pluginAdd the plugin to your Filament panel provider:
use CoddinWeb\FilamentUserback\UserbackPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([
UserbackPlugin::make()
->accessToken('your-userback-access-token')
->userDataUsing(fn () => [
'id' => auth()->id(),
'info' => [
'name' => auth()->user()->name,
'email' => auth()->user()->email,
],
]),
]);
}Set your Userback access token:
UserbackPlugin::make()
->accessToken('your-access-token')Optionally identify logged-in users by providing a callback:
UserbackPlugin::make()
->userDataUsing(fn () => [
'id' => auth()->id(),
'info' => [
'name' => auth()->user()->name,
'email' => auth()->user()->email,
],
])MIT License. See LICENSE for more information.