Skip to content

Laravel CollaborationGoogle Docs-style editing for any Laravel app

Everyone on a record sees each other, types into the same fields at once, and saves one shared draft. Livewire, Inertia + React and Inertia + Vue, with TipTap for rich text.

An article being edited by three people, in LivewireAn article being edited by three people, in ReactAn article being edited by three people, in Vue

Real session

Three browsers, one article

Alice types in React, Bob in Vue and Chloe in Livewire: their words merge, their carets show, and one save keeps everybody's work.

Quick start

Three steps

1

Install

composer require solutionforest/laravel-collaboration
php artisan collaboration:install
2

Say which fields

class Post extends Model
{
    use Collaborative;

    protected array $collaborative = [
        'title', 'body' => FieldKind::RichText,
    ];
}
3

Use it

<x-collaboration::room :room="$this->collaborationRoom()" />

<input wire:model="title">
<x-collaboration::editor field="body" />
const form = useCollaborativeForm(collaboration, data)

<input {...form.field('title')} />
<CollaborativeEditor form={form} field="body" />
const form = useCollaborativeForm(() => props.collaboration, data)

<input v-model="form.title" v-collaborate="form.field('title')">
<CollaborativeEditor :form="form" field="body" />

Follow the step-by-step example page →  ·  Make your own component live →

Screenshots

Taken from real sessions

Every image is recorded from three browsers on the demo app by a script, so what you see is what the package does.

One engine, two packages

Pick the one for your app

Filament Collaboration is built on Laravel Collaboration: the same merge engine, drafts and presence, tested together on every change.

Filament 5 panels

Filament Collaboration

Every field of a Filament resource, live, with no form rewritten. Presence on tables, comments and history in the panel.

Livewire · Inertia + React · Inertia + Vue

Laravel Collaboration You are here

The engine both are built on: shared drafts, presence and sync, with a trait for Livewire and a hook for React and Vue.

Requirements

PHP 8.3+, Laravel 12 or 13, and Livewire 4 or Inertia 3 with React 19 or Vue 3.5. MIT licensed.

Released under the MIT License.