Repository navigation
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.