Skip to content

Extending ​

Your own field type. Tell the package how to share a field it does not know:

php
use Filament\Forms\Components\Field;
use SolutionForest\FilamentCollaboration\Contracts\FieldType;
use SolutionForest\FilamentCollaboration\Enums\FieldKind;

class StarRatingType implements FieldType
{
    public function supports(Field $field): bool
    {
        return $field instanceof StarRating;
    }

    public function getKind(Field $field): ?FieldKind
    {
        return FieldKind::Value; // Text, RichText, Value, Items, or null to merge on save
    }
}
php
CollaborationPlugin::make()->fieldTypes([new StarRatingType]);

For a picker, ValueType::make([StarRating::class]) does the same without a class of your own.

With an AI assistant ​

The package ships a Laravel Boost skill, filament-collaboration-development, and a short guideline in resources/boost. Boost installs a package's skills once the app opts in, in boost.json:

json
{
    "packages": ["solutionforest/filament-collaboration"]
}
bash
php artisan boost:update

The guideline goes into your CLAUDE.md / AGENTS.md, and the skill into .claude/skills and .agents/skills. It covers the traits, which fields are live, permissions, comments and history, relation managers, adapters, Reverb and Redis presence, testing and common mistakes. The demo uses it.

Released under the MIT License.