Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
filament-clarity-development
jeffersongoncalves/filament-clarity
claude-code
filament
clarity
analytics
settings-page
plugins
script-injection

Build and work with the Filament Clarity plugin — Clarity settings page, head script injection and project ID management in Filament panels.

Install
php artisan boost:add-skill jeffersongoncalves/filament-clarity

Save this content to: .claude/skills/filament-clarity-development/SKILL.md

# Filament Clarity Development

## When to use this skill

Use this skill when:
- Adding or changing the Clarity integration of a Filament panel
- Customizing the Clarity settings page
- Debugging missing Clarity tracking code in a panel

## Package Overview

- **Package**: `jeffersongoncalves/filament-clarity` (branch `3.x` for Filament 5.x)
- **Namespace**: `JeffersonGoncalves\Filament\Clarity`
- **Dependencies**: `jeffersongoncalves/filament-analytics-core:^3.0`, `jeffersongoncalves/laravel-clarity:^1.0`
- **Service Provider**: `JeffersonGoncalves\Filament\Clarity\ClarityServiceProvider`

## Version Compatibility

| Branch | Filament | PHP |
|--------|----------|-----|
| 1.x | 3.x | ^8.2 |
| 2.x | 4.x | ^8.2 |
| 3.x | 5.x | ^8.2 |

## Setup

```php
use JeffersonGoncalves\Filament\Clarity\ClarityPlugin;

$panel->plugins([
    ClarityPlugin::make(),                        // settings page + script injection
    // ClarityPlugin::make()->settingsPage(false), // script injection only
]);
```

```bash
php artisan vendor:publish --tag=clarity-settings-migrations
php artisan migrate
```

## Settings Fields

| Field | Type | Description |
|-------|------|-------------|
| `project_id` | TextInput (alphanumeric) | Clarity project ID (Settings > Setup); empty disables tracking |

## Troubleshooting

- **Script missing**: check `project_id` is saved and `ClarityServiceProvider` is discovered; the `clarity::script` view comes from `laravel-clarity`.
- **Settings page errors**: the `clarity` settings group is missing — publish and run the migrations.

Filament Clarity Development

When to use this skill

Use this skill when:

  • Adding or changing the Clarity integration of a Filament panel
  • Customizing the Clarity settings page
  • Debugging missing Clarity tracking code in a panel

Package Overview

  • Package: jeffersongoncalves/filament-clarity (branch 3.x for Filament 5.x)
  • Namespace: JeffersonGoncalves\Filament\Clarity
  • Dependencies: jeffersongoncalves/filament-analytics-core:^3.0, jeffersongoncalves/laravel-clarity:^1.0
  • Service Provider: JeffersonGoncalves\Filament\Clarity\ClarityServiceProvider

Version Compatibility

Branch Filament PHP
1.x 3.x ^8.2
2.x 4.x ^8.2
3.x 5.x ^8.2

Setup

use JeffersonGoncalves\Filament\Clarity\ClarityPlugin;

$panel->plugins([
    ClarityPlugin::make(),                        // settings page + script injection
    // ClarityPlugin::make()->settingsPage(false), // script injection only
]);
php artisan vendor:publish --tag=clarity-settings-migrations
php artisan migrate

Settings Fields

Field Type Description
project_id TextInput (alphanumeric) Clarity project ID (Settings > Setup); empty disables tracking

Troubleshooting

  • Script missing: check project_id is saved and ClarityServiceProvider is discovered; the clarity::script view comes from laravel-clarity.
  • Settings page errors: the clarity settings group is missing — publish and run the migrations.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel