Repository navigation
Releases
Releases · solutionforest/laravel-collaboration
v0.2.2
Fixed: the package as Composer installs it now includes its browser side. Releases until 0.2.1 left resources/js and package.json out of the archive, so npm install ./vendor/solutionforest/laravel-collaboration found nothing to install after composer require. Please update: composer update solutionforest/laravel-collaboration.
v0.2.1
v0.2.0
Everything filament-collaboration offers, now for Livewire, React and Vue too, plus developer conveniences.
New
- Repeaters:
->items('lines', text: ['description']), withform.items()in React/Vue andwire:model="lines.0.title"in Livewire. - Saves that respect each other:
- Fields you didn't touch take the values somebody else saved.
- A field you both changed asks which version to keep (
<Conflicts>,<x-collaboration::conflicts>).
- Presence: create pages (
Collaboration::creating(Post::class)), who is on each record of a list (Collaboration::presence($posts)), and following a colleague from field to field. - Optional features, off until you turn them on:
These cover comments with @mentions, version history with restore, and images uploaded into rich text. Their UI has its own imports (
Collaboration::features([Features::comments(), Features::history(), Features::uploads()]);
/react/comments,/vue/history, …), and in Livewire its own script. - Livewire:
<x-collaboration::editor field="body" />(rich text, no build step)<x-collaboration::field-people field="title" />Collaboration.items()for repeaters
- Your own design:
Collaboration::withoutStyles(), plus render functions and slots for the faces. php artisan collaboration:install, and a VitePress docs site built from the README (website/).
Upgrading from 0.1
- Comments: they're optional now. Call
Collaboration::features([Features::comments()])to keep them. The comments table already exists from 0.1 and its new migration skips it. - Comment and history imports: the components moved to
/react/comments,/react/history,/vue/commentsand/vue/history.
Quality
- This package: 150 PHP tests and 40 JS tests pass.
- Browsers: a three-browser run with Livewire, React and Vue on one article passes 17 of 17.
- filament-collaboration: its full suite passes against this release (378 of 378).
- PHPStan: level 10, covering the package and its test classes.
v0.1.0
The first internal release of solutionforest/laravel-collaboration: Google Docs-style collaboration for any Laravel app, with adapters for Livewire, Inertia + React and Inertia + Vue, and TipTap for rich text.
What's in it
- Live fields:
- Text merges by character; rich text (TipTap) keeps its formatting.
- Selects, checkboxes, checkbox groups, radios and dates take the latest choice.
- Presence: faces, who is in which field, other people's carets and selections, and sync status.
- Each person's own undo, and locked fields (
->lock()). - Saving everybody's edits:
$post->collaboration()->update($validated), orsaveCollaboratively()in Livewire. - Your policies decide who may join, and access is checked again on every sync.
- Typo protection:
- Wrong field kinds and names fail with "did you mean".
- TypeScript declarations for every entry point.
- PHPStan level 10.
- Integrations: hooks used by filament-collaboration, which is being moved onto this package (solutionforest/filament-collaboration#14).
Install (private repository)
"repositories": [{ "type": "vcs", "url": "git@github.com:solutionforest/laravel-collaboration.git" }]composer require solutionforest/laravel-collaboration:^0.1
php artisan migrate
npm install ./vendor/solutionforest/laravel-collaboration # Inertia apps onlySee the README for the quick start for each stack.