Skip to content

Building an integration ​

The package knows nothing about any one framework, so other packages can build on it. filament-collaboration does, with these hooks:

php
Collaboration::resolveUsersUsing(fn () => Filament::auth()->user());     // a guard of its own
Collaboration::readConfigUsing(fn ($key, $default) => config("filament-collaboration.{$key}", $default));
Collaboration::broadcast(fn () => CollaborationPlugin::find()?->isBroadcasting());   // settings may be closures
Collaboration::ignoreMigrations();                                       // keeps its own tables
Collaboration::ignoreRoutes();                                           // registers sync inside each panel

app()->bind(AuthorizesRooms::class, PanelRoomAuthorizer::class);         // its own access rules

Room::meta() carries anything the integration must find again on every sync, such as a panel and a tenant.

Released under the MIT License.